Opened at 2013-08-05T23:51:56Z
Closed at 2016-03-26T22:46:06Z
#2044 closed defect (fixed)
investigate newer setuptools
Reported by: | daira | Owned by: | daira |
---|---|---|---|
Priority: | major | Milestone: | 1.11.0 |
Component: | packaging | Version: | 1.10.0 |
Keywords: | packaging setuptools security | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
What is setuptools 0.7+ ?
Does setuptools 0.9.* fix any of the bugs we care about?
What happens when you try to use zetuptoolz on a system with setuptools 0.7+ installed?
These questions --and many others-- will be answered in the next episode of the ongoing saga that is Tahoe-LAFS packaging.
Change History (13)
comment:1 Changed at 2013-08-05T23:58:11Z by daira
- Description modified (diff)
comment:2 Changed at 2013-08-27T11:55:43Z by daira
- Keywords security added
- Milestone changed from undecided to soon
- Priority changed from normal to major
comment:3 Changed at 2013-09-12T13:03:54Z by geal
- Keywords review-needed added
comment:4 Changed at 2013-09-12T13:19:40Z by zooko
I just read through our revision control history of the bundled copy of setuptools, and here are all the patches that I saw that we applied that aren't (or weren't) in upstream setuptools:
- c045241a5505684831f7c0fed74f94e8ec0a7e8e: two changes: 1. some changes to launcher on Windows (see #1074), and 2. if site.py was not generated by setuptools, treat this as just a warning, not an error: code (#1074)
- 4d785cfe3079a7f09f30621d4e4dba69460599ef: "this version completes my patch to fix http://bugs.python.org/setuptools/issue54 , which is necessary for tahoe to build with --prefix=support without doing a lot of PYTHONPATH gymnastics around the call to setup.py"
- 5c0d937eececedbc98d16829f33a6765b7058f38: "Hopefully this one fixes the issue with easy_install not searching the sys.path for packages that were requested to be installed, (setuptools #17), thus allowing us to do away with the "--site-dirs=" kludges, which are currently breaking some of our buildbots." I believe that setuptools #17 is fixed in newer setuptools's, although there was at one point a regression that broke it again in "distribute", so the very latest setuptools's might have inherited that regression if they are now taking code back from "distribute".
- 4d785cfe3079a7f09f30621d4e4dba69460599ef "this version completes my patch to fix http://bugs.python.org/setuptools/issue54 , which is necessary for tahoe to build with --prefix=support without doing a lot of PYTHONPATH gymnastics around the call to setup.py"; This patch was never accepted into setuptools, at least not in setuptools v0.6, according to http://bugs.python.org/setuptools/issue54 .
- 84cd0d991a1b121ab2d27d8cc09b37ba52ec2841 This was fixed in upstream distribute: https://bitbucket.org/tarek/distribute/issue/147/respect-the-sysdont_write_bytecode-flag .
- 0e20ab6003dec602b3adb53b6ec029cd535bec98 "Tolerate import errors when loading extra commands for "setup.py --help-commands""
- 06a8b1ea84fd67c019ef91c28c18ddcc9ea2ecb8 "pkg_resources: better error message on bad spec"
That's all! There are only seven patches that we need to confirm whether they are fixed upstream, or port our patches to the new setuptools, or decide that we don't mind a regression by losing this patch.
Also dstufft mentioned that he would be willing to consider accepting these patches upstream if they aren't already there.
comment:5 Changed at 2013-09-12T13:22:17Z by zooko
- Keywords review-needed removed
Dear geal:
Thank you for working on this! Please add the "review-needed" tag to this ticket once this ticket has a link to a github pull request or a patch that fixes it.
comment:6 Changed at 2014-04-14T21:37:15Z by daira
This might help with #2217.
comment:7 Changed at 2014-09-07T17:25:07Z by daira
- Keywords openitp-packaging added
comment:8 Changed at 2014-09-25T15:54:24Z by daira
- Keywords openitp-packaging removed
comment:9 Changed at 2015-02-25T14:06:33Z by zooko
dstufft pointed out on IRC that the latest setuptools refuses to download dependencies from PyPI over insecure HTTP. This is an important feature.
comment:10 Changed at 2015-05-04T23:29:46Z by daira
- Milestone changed from soon to 1.11.0
- Owner set to daira
- Status changed from new to assigned
comment:11 Changed at 2015-07-21T20:01:57Z by daira
- Summary changed from investigate setuptools 0.7+ to investigate newer setuptools
comment:12 Changed at 2016-03-22T05:02:52Z by warner
- Milestone changed from 1.11.0 to 1.12.0
Milestone renamed
comment:13 Changed at 2016-03-26T22:46:06Z by warner
- Milestone changed from 1.12.0 to 1.11.0
- Resolution set to fixed
- Status changed from assigned to closed
We've removed zetuptoolz, and we now require a non-ancient version of setuptools. Also, our new virtualenv-based install instructions will generally give users a very modern setuptools, and current pip does the right thing with TLS. Time to close this one.
Apparently setuptools 0.6 (which zetuptoolz is forked from) does not verify SSL :-(, and setuptools 0.7+ does.