I have a python project using setuptools via setup.py for installation. When I provide no arguments to python setup.py install
things install into the standard --user
directory in ~/.local
. However, when I provide --prefix ~/opt/myproject
, that gets ignored by the install command and things still get pushed into ~/.local
. It seems that whatever directories I specify, the 'user' scheme is selected.
I'm not doing anything special in my setup.py, but I can post whatever code is relevant to help debugging.
I've seen this behavior with certain versions of
setuptools
. If you're importing fromsetuptools
try importing fromdistutils
instead and see if that solves it.