-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Invalid string type when reading declarative setup.cfg
under Python 2
#1136
Comments
I can confirm this problem. If
Under Python 2 the results values of the
While under Python 3
Which overall should be fine, but it is not. Under Python 2 a string |
Rather than patching only |
I believe #1062 is related. The problem with switching to Unicode for the results of reading the configuration is it will trips things like |
I am using
|
Seems this still blocks 3.x from Python 2.7.x does the issue in setuptools still persist? |
I'm seeing this issue right now with Python 2.7.12 and
what's the status of fixing this? |
A bug is blocking setuptools from working with python2 [bug]. Work is on its way [pr]. Until that is fixed, package_dir should be defined in setup.py to preserve compatibility of the native str type. [bug]: pypa/setuptools#1136 [pr]: pypa/setuptools#1180 Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Add base project packaging configuration. Note: setuptools seems to have issues when dealing with projects not located in the project's root [1]. Let's be pragmatic and remove the src/ directory. 1. pypa/setuptools#1136
Add base project packaging configuration. Note: setuptools seems to have issues when dealing with projects not located in the project's root [1]. Let's be pragmatic and remove the src/ directory. 1. pypa/setuptools#1136
We have users still reporting this with setuptools 41.4 |
Rather than depending on the version of setuptools shipped with any particular version of Python, or any packages that may be preinstalled in the test environment, upgrade test/packaging dependencies before running tests or building wheels. Note: This fixes two specific issues: - Appveyor images may have an old setuptools version installed for some Python versions (e.g. Python 3.5 currently has setuptools 28.8.0). This can cause problems due to setup.py requiring 30.3.0. Upgrade required packages during install. - Travis CI "error: 'egg_base' must be a directory name (got `src`)" on some python versions (e.g. 2.7) likely due to pypa/setuptools#1136 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
The version of setuptools in the Travis virtualenv is current (44.1.1), but tox .package get-build-requires fails with: running egg_info error: 'egg_base' must be a directory name (got `src`) Which appears to be pypa/setuptools#1136 Perhaps Debian package (copied into virtualenv) is affected? Reinstall to avoid the issue. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Hi,
I'm seeing the following error:
The config contains:
Contents of
package_dir
is(I've worked around this by manually reading config and patching this applying
str()
to keys and vars)Python: 2.7
OS: GNU/Linux
The issue appears to be the same as for:
The text was updated successfully, but these errors were encountered: