The wheel files are installed to the wrong location when installed using the root user (which we are doing inside a Docker container).
Steps to reproduce:
docker run -it ubuntu:latest
apt update && apt install python3-pip
pip install --break-system-packages netgen-mesher
ls /usr/local/lib/python3.12/
The expected outcome is for the files to be installed into /usr/local/lib/python3.12/dist-packages (which is what numpy does for example) but they are actually being put into /usr/local/lib/python3.12/site-packages which means that they cannot be found. I.e.
$ python -c "import netgen"
raises a ModuleNotFoundError. This can be worked around by setting PYTHONPATH=/usr/local/lib/python3.12/site-packages but that isn't ideal.
Looking at the contents of /netgen_mesher-6.2.2501.dist-info/RECORD in the wheel I see site-packages hard-coded for some of the paths which I think isn't right.
The wheel files are installed to the wrong location when installed using the root user (which we are doing inside a Docker container).
Steps to reproduce:
docker run -it ubuntu:latestapt update && apt install python3-pippip install --break-system-packages netgen-mesherls /usr/local/lib/python3.12/The expected outcome is for the files to be installed into
/usr/local/lib/python3.12/dist-packages(which is what numpy does for example) but they are actually being put into/usr/local/lib/python3.12/site-packageswhich means that they cannot be found. I.e.raises a
ModuleNotFoundError. This can be worked around by settingPYTHONPATH=/usr/local/lib/python3.12/site-packagesbut that isn't ideal.Looking at the contents of
/netgen_mesher-6.2.2501.dist-info/RECORDin the wheel I seesite-packageshard-coded for some of the paths which I think isn't right.