Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108660
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ervin Hegedüs <airween@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Autotool - compile module for both Python 2 _and_ 3 |
| Date | Mon, 16 May 2016 11:05:39 +0200 |
| Lines | 27 |
| Message-ID | <mailman.11.1463389543.19823.python-list@python.org> (permalink) |
| References | <20160516090539.GA8327@arxnet.hu> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de FhV1HzQFKzMSp/Vc2BO1EA0isXjg+IBZc/i3wFcTf7gw== |
| Return-Path | <airween@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'problem?': 0.07; 'utf-8': 0.07; 'versions.': 0.07; 'subject:both': 0.09; 'subject:module': 0.09; 'python': 0.10; '(eg.': 0.16; 'macro': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'library,': 0.18; 'all,': 0.20; 'arguments': 0.22; 'pass': 0.22; 'thanks,': 0.24; 'written': 0.24; 'header:User-Agent:1': 0.26; "can't": 0.32; 'skip:- 10': 0.34; 'advice': 0.35; 'received:google.com': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'files': 0.38; 'skip:- 20': 0.39; 'to:addr:python.org': 0.40; 'called': 0.40; 'latest': 0.64; '"best': 0.84; 'welcome!': 0.84; 'received:hu': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=EGmZO080Ml8Csklged+UQwwrpRg5QVX7gXbXmb5mf7w=; b=GlRGwAKpxo56dV3dpN5fHUJpsTa3yOgvsgL1EeQT5rkGIXYVzF3dk1jPAP8rLU2OfO VU9bsT4+uvv7GGXAoW6Rb7PyivyHCxNE31IK9a8nGSfRpfgjgB3wuOXtt7aZNu/j0mGz nJWYFCwjX7roWm4FQBsq1VPA8mlvo/9MsK6oJKEfNrTYETWGi82lylo/2d0LlEioA4Ys zf4iUAo1h/vXsXN/NzY36fukQi0uCfEuoWUnlc6tJJKEGwFzSE1Fipx/mNSCbVzzqe/m uq1H5BwyBQ7fdqfs1vEvKbTSBuMzyXwsw+Lu3KlRQsiD8f+VmV6A1tCZ7o0r4wRT3si1 Ql2w== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=EGmZO080Ml8Csklged+UQwwrpRg5QVX7gXbXmb5mf7w=; b=MG+lA9SdElmSmoLsNRIqVX+BQl605wF4Hc122J/L7ja5se7Zpg8gxQmCFZECwlv/zd NnZSqSQ9B9N5lpThzuOjLW0RJqX68pDirBtTNneEcAsja/lH98b5eAAFkW0CUnClZqzb ZNDYnKpXr/vPqxHMy1klNk45oZo8hrRVaRpIRcVC4/RTw6/dTrarkEiR7I6vgQ78u+zJ /Ww3geja5cn62azq8vfsCpxjduG+PtOCYzAt3KVcryPbHeFJVe8gwawh8A1Dpr1wicLr BcFYSuHStAgK3gw4gf/eTnhKg+EHOrBEEcGuUjVui1WUGYLJ/6/h+A6BAUb6QU6LZw5S gzgw== |
| X-Gm-Message-State | AOPr4FWSWGhcnOf7fH2gwt/2aLx7IHBuVOcqJc/lQg2DZGaETowKDBKBYrVHxAAlpliAAw== |
| X-Received | by 10.28.167.193 with SMTP id q184mr17368046wme.63.1463389542093; Mon, 16 May 2016 02:05:42 -0700 (PDT) |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <20160516090539.GA8327@arxnet.hu> |
| Xref | csiph.com comp.lang.python:108660 |
Show key headers only | View raw
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