-
-
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
bdist_egg doesn't run 2to3 after bdist_egg with python-2.x #135
Comments
Original comment by aodag (Bitbucket: aodag, GitHub: aodag): default http://hg.python.org/cpython/file/fff1455e1147/Lib/distutils/command/build.py#l92 |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I agree. I've encountered this situation myself a number of times. I've half a mind to say that setuptools should clear the build directory on each build of 2to3 is enabled. Otherwise, I don't believe there's any clear signal as to whether the code in the build directory has had 2to3 applied or not. I suspect also that distutils is subject to the same issue if the 'build_py_2to3' command is used per the documentation, though I haven't confirmed that. Regardless of distutils behavior, there's no reason setuptools can't improve on it. I'm open to patch submissions or pull requests regarding this issue. |
Original comment by stefanholek (Bitbucket: stefanholek, GitHub: stefanholek): Use of 2to3 pretty much requires an sdist in my opinion. |
This issue is now obsolete. See #1120. |
Update test_home_installation_scheme for pypy install paths
Originally reported by: shimizukawa (Bitbucket: shimizukawa, GitHub: shimizukawa)
If the source directory have
build/lib
that was created bypython-2.x setup.py bdist_egg
, bdist_egg (and bdist_wheel) with python3 does not invoke 2to3 process.A similar issue #102 's workaround doesn't work for me.
bdist_egg with python3 generate egg successfully:
bdist_egg with python2 and python3 generate broken py3-egg:
bdist_egg with python3 and python2 generate broken py2-egg:
IMO, setuptools should separate
build/lib
directory for 2to3 and non-2to3.And there are my current workarounds:
setup.py build -b build.py33 bdist_egg
FYI: this issue's behavior is confirmed with distribute-0.6.49, setuptools-0.9.8, 1.4.2, 2.1.
The text was updated successfully, but these errors were encountered: