[tahoe-lafs-trac-stream] [tahoe-lafs] #1494: 'python setup.py install' does not install all dependencies

tahoe-lafs trac at tahoe-lafs.org
Tue Aug 27 11:30:15 UTC 2013


#1494: 'python setup.py install' does not install all dependencies
-----------------------------+--------------------------------
     Reporter:  canercandan  |      Owner:  canercandan
         Type:  defect       |     Status:  new
     Priority:  major        |  Milestone:  undecided
    Component:  code         |    Version:  1.8.2
   Resolution:               |   Keywords:  setuptools install
Launchpad Bug:               |
-----------------------------+--------------------------------

Old description:

> I have made the test on an Ubuntu 10.04 and 11.04 distributions.
>
> When I install tahoe-lafs using the sources with the commands:
> {{{
> python ./setup.py build
> python ./setup.py install
> }}}
> not all of the dependencies are correctly installed. Indeed some of them
> located under support/lib/... are not in /usr/local/python-X.XX/dist-
> packages/...
>
> So that when I use the command "tahoe" it generates missing dependencies
> error messages.
>
> Solution:
> The temporary solution is to manually copy the whole of files and
> subdirectories located on support/lib/... into /usr/local/python-X.XX
> /dist-packages/... and then it works fine.

New description:

 I have made the test on an Ubuntu 10.04 and 11.04 distributions.

 When I install tahoe-lafs using the sources with the commands:
 {{{
 python ./setup.py build
 python ./setup.py install
 }}}
 not all of the dependencies are correctly installed. Indeed some of them
 located under support/lib/... are not in /usr/local/python-X.XX/dist-
 packages/...

 So that when I use the command "tahoe" it generates missing dependencies
 error messages.

 Solution:
 The temporary solution is to manually copy the whole of files and
 subdirectories located on support/lib/... into /usr/local/python-X.XX
 /dist-packages/... and then it works fine.

--

Comment (by zooko):

 Even if canercandan doesn't give more information, I now understand that
 {{{python setup.py install}}} doesn't install dependencies, only the main
 package. This is unlike {{{easy_install allmydata-tahoe}}} and {{{pip
 install allmydata-tahoe}}} and unlike just doing {{{python setup.py
 build}}} and running the software from the current directory, as is
 recommended in [source:trunk/docs/quickstart.rst quickstart.rst]. All of
 those three options will automatically resolve dependencies. See, for
 example, sel's recent bug report: #2063.

 I'm leaving this ticket open. To fix it, switch our build system to a tool
 which automatically resolves dependencies when you run {{{python setup.py
 install}}}. (Note: I'm not aware of any build tool that already does this
 for you, so I guess you would have to create a bespoke tool for Tahoe-LAFS
 or else contribute a patch to some tool like setuptools and then use it in
 Tahoe-LAFS.)

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1494#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


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