I prefer to manage my Python packages with pip, so in the past I have installed PHCpy3 via:
cd PHC_src/src/Objects
make -f makefile_unix phcpy2c3.so
cd ../Python/PHCpy3
python3 -m pip install .
This worked with Python 3.6, but with Python 3.8 (and very recent versions of pip, setuptools and wheel), the above is no longer copying phcpy2c3.so into site-packages/phcpy. Looking at the verbose output of pip, I see the garbled line:
I prefer to manage my Python packages with
pip
, so in the past I have installed PHCpy3 via:This worked with Python 3.6, but with Python 3.8 (and very recent versions of
pip
,setuptools
andwheel
), the above is no longer copyingphcpy2c3.so
intosite-packages/phcpy
. Looking at the verbose output ofpip
, I see the garbled line:where site-packages is
/sage/local/lib/python3.8/site-packages/
. I believe this has to do with the use ofget_python_lib
insetup.py
.There is a simple fix which actually simplifies
setup.py
, I will create a pull-request for this shortly.