Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108660
| From | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Autotool - compile module for both Python 2 _and_ 3 |
| Date | 2016-05-16 11:05 +0200 |
| Message-ID | <mailman.11.1463389543.19823.python-list@python.org> (permalink) |
| References | <20160516090539.GA8327@arxnet.hu> |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Autotool - compile module for both Python 2 _and_ 3 Ervin Hegedüs <airween@gmail.com> - 2016-05-16 11:05 +0200
csiph-web