[MacPorts] #62580: hamlib @4.1: please enable python (and python3) bindings.
MacPorts
noreply at macports.org
Thu Apr 1 02:29:18 UTC 2021
#62580: hamlib @4.1: please enable python (and python3) bindings.
----------------------+---------------------
Reporter: RobK88 | Owner: ra1nb0w
Type: request | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: fixed | Keywords:
Port: hamlib |
----------------------+---------------------
Comment (by RobK88):
After more testing, I can confirm that Hamlib with python 3.9 bindings
will compile manually on the Mac if the following lines are removed (or
commented out) in configure.ac:
dnl Determine whether to link libpython as it is unneeded for Python
>= 3.8
## AM_PYTHON_CHECK_VERSION([${PYTHON}], [3.8], [pyver_3_8="yes"],
[pyver_3_8="no"])
## AS_IF([test x"${pyver_3_8}" = "xyes"],[
## PYTHON_LIBS=""
## ])
py3test.py also runs fine! So it works!
P.S. If one manually changes configure.ac with a text editor, the
following commands are needed to compile Hamlib with python3.9 bindings:
autoreconf --install
./configure --with-python-binding --prefix=/usr/local
make
sudo make install
Then run:
PYTHONPATH=/usr/local/lib/python3.9/site-packages:$PYTHONPATH python
bindings/py3test.py
I did not test building Hamlib with Python3.8 bindings using the updated
configure.ac. But given the changes to configure.ac, I am sure it will
also build fine.
Of course building Hamlib manually and using PYTHONPATH is NOT the
preferred way to go for Macports' users.
I have submitted an Bug Report with the proposed fix to the Hamlib
developers. I am hoping that they will update the source code for Hamlib
accordingly.
--
Ticket URL: <https://trac.macports.org/ticket/62580#comment:24>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list