Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108660 > unrolled thread
| Started by | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| First post | 2016-05-16 11:05 +0200 |
| Last post | 2016-05-16 11:05 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Autotool - compile module for both Python 2 _and_ 3 Ervin Hegedüs <airween@gmail.com> - 2016-05-16 11:05 +0200
| From | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| Date | 2016-05-16 11:05 +0200 |
| Subject | Autotool - compile module for both Python 2 _and_ 3 |
| Message-ID | <mailman.11.1463389543.19823.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web