[needs fixing] Fix python site-packages dir#3916
[needs fixing] Fix python site-packages dir#3916NTULINUX wants to merge 1 commit intoLinuxCNC:masterfrom
Conversation
Fixes the need for PYTHONPATH on Gentoo Signed-off-by: Alec Ari <neotheuser@ymail.com>
|
Looks like this needs to be fixed to account for Debian..
Ah, looks like various parts of the tree are also hard-coded to use Did not see these. Any tips? The issue is that depending on the exact version of python that debian uses will affect the installation path, which will vary from each debian release, that's the tricky part to make this work across all versions. Not sure on a clean way to avoid the hard-coded variables either, as those will also change. |
|
Is there a distro independent way to find out where python packages need to be installed? |
|
Well that's what this should do: https://github.com/LinuxCNC/linuxcnc/blob/master/src/m4/ax_python_devel.m4#L340 That's where I got PYTHON_SITE_PKG from. There's also That's going to change though distro to distro... The commands themselves are universal, the result is not. PYTHON_SITE_PKG works but
Using PYTHON_SITE_PKG works for both a system-wide install though, and run-in-place. I just checked in my Trixie VM and PYTHON_SITE_PKG is working as intended (both rip and system-wide install.) |
Fixes the need for PYTHONPATH on Gentoo