-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
inconsistent user of install prefix #2263
Comments
We recommend not to use |
Thank you, I'll keep that in mind. However, let me put this into a somewhat broader perspective: Nowadays, I don't have a coherent picture of what tools to use. You are suggesting |
In the general case, I'd recommend against creating RPM and deb packages. These package managers already have their own ideosyncratic ways of managing Python and its packages. Instead, I would recommend drawing the line of using managed packages early (before building Python such as with pyenv), before installing pip (and bootstrap pip), or possibly after installing a suite of common, supported packages. But then, install additional packages using pip and possibly virtualenv. This approach gives you more flexibility with platforms (such as macOS and Windows) and gives more flexibility as to how you might construct a tool chain (for example, these package managers typically only allow one version of a dependency to be installed at a time on a given host). That said, instead of answering the question you didn't ask (how to avoid/limit using system package managers), I'll try to answer the question you did ;)
Setuptools still supports the It's possible the bdist_rpm command will be deprecated in the future, but I think it's likely that Setuptools will support third-party commands through entry points as it does now, meaning even if Setuptools were to remove the What I don't understand is how this question pertains at all to I hope that answers the question thoroughly. If I've made any mistakes or you have follow-up questions, let me know. |
Hi Jason, |
I'm working on Ubuntu 18.04, using the system Python version 3.6.9, trying to install my own Python project.
Running
python3 setup.py install --prefix=/usr/local
will result in modules being installed into/usr/local/lib/python3.6/dist-packages/
. However, when I want to switch to "developer mode", i.e. I replace the "install" command by "develop" (python3 setup.py develop --prefix=/usr/local
), setuptools attempt to install the package into/usr/local/lib/python3.6/site-packages
instead. (notice the difference betweendist-packages
andsite-packages
in the path).Where does this inconsistency stem from, and how can I force the path to be consistent ?
The text was updated successfully, but these errors were encountered: