Replies: 1 comment 12 replies
-
Why do you want it to be independent of the python version? Note that on e.g. Debian, the default installation location for install_sources is already "python3/dist-packages" which is independent of version That's actually a bit of a problem since you can install the interpreter for python 3.8 and python 3.10 and then install a system package for a python 3.10 module, which is then importable in python 3.8 but is broken and fails to work (despite which, pip install thinks it's already installed and doesn't try to install a compatible copy). You cannot actually use a module with multiple versions of python unless it's a pure library. For applications (such as bubbblejail??) you are limited to whichever version of python is in the script shebang -- and also whichever version of python has your python dependencies installed. |
Beta Was this translation helpful? Give feedback.
-
I want to install the Python files outside the site-packages directories so that it is not Python version dependent.
My first idea was to modify the
python.purelibdir
andpython.platlibdir
options, however, it is impossible to programatically modify the options unless they are in subprojectI tried setting
subdir
to an absolute path but then it no longer compiles byte code.Instead I found this trick:
You get both byte code compilation and it is installed outside the site-packages. However, it is kind of a hack.
Maybe there is a better solution?
Beta Was this translation helpful? Give feedback.
All reactions