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
Port distutils as found in Python 2.7 to Python 3.x. #63743
Comments
Following from bpo-7457, in which a single feature was identified to have gone missing in 29a3eda89995, this ticket captures the need to bring the Python 3 codebase up to match Python 2.7. |
I went through Python 2.7's Misc/NEWS file and collected the entries for Distutils-related issues that were applied. Perhaps we can check the individual entries on this list, and see which ones are still present in Python 3.x and which ones got reverted. |
I wouldn't trust the NEWS items. I think the only reliable thing to do is diff each file, unfortunately. |
Issue bpo-11104 also made some functionality work in both 2.7 and 3.2, though it's not clear that the problem stemmed from the distutils2 revert. |
After spending several hours spelunking, we identified what we believe are the tickets that were backed out in the aforementioned reversion. bpo-1180 Additionally, bpo-6377 (renaming .compiler to .compiler_obj) was reverted, but it likely should not be re-applied. Attached is an export of the etherpad (http://beta.etherpad.org/p/python_2.7_distutil_commits) which we used to keep track of the changes and show our work. We will flag the above tickets and address each individually. |
New changeset e19441e540ca by Jason R. Coombs in branch '3.3': New changeset 28059d8b395b by Jason R. Coombs in branch 'default': |
New changeset 5e98c4e9c909 by Jason R. Coombs in branch '3.3': New changeset b1244046f37a by Jason R. Coombs in branch 'default': |
b1244046f37a appears to have broken buildbots. See, for example: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/2984 |
Thanks Ned. I did see that and have pushed 394ed9deebd4. I believe that corrects the only test failure. |
New changeset b9c9c4b2effe by Andrew Kuchling in branch 'default': |
New changeset b08868fd5994 by Christian Heimes in branch 'default': |
New changeset 015463176d2e by Victor Stinner in branch 'default': |
At changeset 015463176d2e2530e4f07cfbe97e41abac540a57, test_make_distribution_owner_group() was failing on some buildbots. test_distutils works fine on my Linux box, I ran the test as my haypo user and as root. ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/distutils/tests/test_sdist.py", line 477, in test_make_distribution_owner_group
self.assertEquals(member.gid, os.getgid())
AssertionError: 0 != 1002 http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/470/steps/test/logs/stdio ====================================================================== Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/distutils/tests/test_sdist.py", line 477, in test_make_distribution_owner_group
self.assertEquals(member.gid, os.getgid())
AssertionError: 0 != 20 |
New changeset c35311fcc967 by Andrew Kuchling in branch 'default': |
The problem is that tempfile.mkdtemp() creates a directory with the The test uses os.getpid() to get the group identifier. The test should use os.stat(self.tmp_dir).st_gid (and st_uid) instead I don't know if distutils should create tarball with the group 0 or |
I believe all identified issues have been ported/fixed. |
New changeset 83f12a9593db by Zachary Ware in branch 'default': |
New changeset 2a872126f4a1 by Zachary Ware in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: