Opened at 2011-08-21T14:44:19Z
Last modified at 2020-01-13T20:37:35Z
#1494 closed defect
'python setup.py install' does not install all dependencies — at Version 6
Reported by: | canercandan | Owned by: | canercandan |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | code | Version: | 1.8.2 |
Keywords: | setuptools install | Cc: | |
Launchpad Bug: |
Description (last modified by zooko)
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.
Change History (6)
comment:1 Changed at 2011-08-21T14:53:40Z by davidsarah
- Component changed from unknown to code
- Description modified (diff)
- Keywords setuptools install added
- Owner changed from nobody to somebody
- Summary changed from Installation from sources not pretty fine to 'python setup.py install' does not install all dependencies
comment:2 Changed at 2011-08-21T15:18:07Z by davidsarah
comment:3 Changed at 2011-08-21T15:37:25Z by davidsarah
... and also the output of "which tahoe" and "tahoe --version-and-path" after the install.
comment:4 Changed at 2011-08-21T16:00:31Z by davidsarah
Oh, before doing the above tests, please delete or move aside the directories you copied into /usr/local/python-X.XX/dist-packages , and do make clean in the Tahoe source directory.
comment:5 Changed at 2011-08-26T21:51:31Z by davidsarah
- Owner changed from somebody to canercandan
Waiting for more information from canercandan.
comment:6 Changed at 2013-08-27T11:30:13Z by zooko
- Description modified (diff)
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 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.)
Which dependencies are not installed, and what is the full output of python setup.py build and python setup.py install? (Please attach it.)