[tahoe-lafs-trac-stream] [tahoe-lafs] #1450: setuptools downloads and builds a correct version of a dependency in the install-to-egg step, but then adds a different version not satisfying the requirement to easy_install.pth

tahoe-lafs trac at tahoe-lafs.org
Thu Aug 4 09:30:07 PDT 2011


#1450: setuptools downloads and builds a correct version of a dependency in the
install-to-egg step, but then adds a different version not satisfying the
requirement to easy_install.pth
----------------------------+------------------------------
     Reporter:  davidsarah  |      Owner:  somebody
         Type:  defect      |     Status:  new
     Priority:  major       |  Milestone:  undecided
    Component:  packaging   |    Version:  1.8.2
   Resolution:              |   Keywords:  setuptools build
Launchpad Bug:              |
----------------------------+------------------------------

Comment (by zooko):

 Eugen upgraded to setuptools-0.6c12dev-!r88846 ([http://tahoe-
 lafs.org/buildbot/builders/Eugen%20lenny-amd64/builds/878/steps/show-tool-
 versions/logs/stdio show-tool-versions]), and this problem went away:
 [http://tahoe-lafs.org/buildbot/builders/Eugen%20lenny-
 amd64/builds/878/steps/install-to-egg/logs/stdio test-from-egg stdio].

 Now there is another problem in the subsequent [http://tahoe-
 lafs.org/buildbot/builders/Eugen%20lenny-amd64/builds/878/steps/test-from-
 egg/logs/stdio test-from-egg] step. The {{{sys.path}}} has
 {{{/usr/lib/python2.5/site-packages}}} earlier than
 {{{/home/tahoebuildslave/tahoebuildslave/Eugen lenny-
 amd64/build/egginstalldir/Twisted-11.0.0-py2.5-linux-x86_64.egg}}}, so
 Twisted 8.1 (which is in {{{/usr/lib/python2.5/site-packages}}} gets
 imported and then our
 [source:trunk/src/allmydata/__init__.py?annotate=blame&rev=5079#L346
 check_all_requirements()] function correctly objects that we imported a
 disallowed version.

 I don't know why {{{/usr/lib/python2.5/site-packages}}} is earlier than
 the Twisted egg. Setuptools normally puts all .egg's earlier on the
 {{{sys.path}}} earlier than all non-egg entries (which is the cause of the
 most widely hated setuptools issue:
 [http://bugs.python.org/setuptools/issue53 setuptools issue #53 -- respect
 the PYTHONPATH]).

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1450#comment:3>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list