Autotool - compile module for both Python 2 _and_ 3
Ervin Hegedüs
airween at gmail.com
Mon May 16 05:05:39 EDT 2016
Hi All,
there is a library, which written in C. I'ld like to use it from
Python - from Python 2 _and_ 3.
I can make the autotools* files for Python 2 and Python 3, but
only exclusively. I can't make it for both in same time.
There is a macro for autotool, called ax_python_devel.m4. This
macro uses same names, so when I use it, and pass the arguments
(eg. --with-python --with-python3), then only the latest name
will be used (eg. PYTHON_CPPFLAGS = -I/usr/include/python3.4m),
and compile system uses only that for both versions.
Is there any "best practice" to solve this problem?
Practical advice or links are welcome!
Thanks,
Ervin
--
I � UTF-8
More information about the Python-list
mailing list