Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108734

Re: Autotool - compile module for both Python 2 _and_ 3

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Dirk Bächle <tshortik@gmx.de>
Newsgroups comp.lang.python
Subject Re: Autotool - compile module for both Python 2 _and_ 3
Date Tue, 17 May 2016 09:13:02 +0200
Lines 26
Message-ID <mailman.53.1463482308.19823.python-list@python.org> (permalink)
References <20160516090539.GA8327@arxnet.hu> <573AC47E.8060006@gmx.de>
Reply-To dl9obn@darc.de
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de aphM8Q03t7toAy1hJ6htmgXP/AebuzH85lQRJPP3umDw==
Return-Path <tshortik@gmx.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'problem?': 0.07; 'variant': 0.07; 'received:gmx.net': 0.09; 'subject:both': 0.09; 'subject:module': 0.09; 'python': 0.10; 'url:org)': 0.13; 'advice:': 0.16; 'from:addr:gmx.de': 0.16; 'message-id:@gmx.de': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'library,': 0.18; 'all,': 0.20; 'handles': 0.20; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; "can't": 0.32; 'source': 0.33; 'builds': 0.33; 'advice': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'files': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'received:212.227.17': 0.66; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; '"best': 0.84; 'welcome!': 0.84
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
In-Reply-To <20160516090539.GA8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gjmKgqusFeSfjrguLFFI5bUta+c BLmhkj3
X-Mailman-Approved-At Tue, 17 May 2016 06:51:47 -0400
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 <573AC47E.8060006@gmx.de>
X-Mailman-Original-References <20160516090539.GA8327@arxnet.hu>
Xref csiph.com comp.lang.python:108734

Show key headers only | View raw


Hi Ervin,

On 16.05.2016 11:05, Ervin Hegedüs wrote:
> 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.
>
> [...]
>
> Is there any "best practice" to solve this problem?
>
> Practical advice or links are welcome!
>

here's my practical advice: have a look at SCons (http://www.scons.org). It handles variant builds (multiple packages/target) from 
the same source very well, even in parallel.

Best regards,

Dirk

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Autotool - compile module for both Python 2 _and_ 3 Dirk Bächle <tshortik@gmx.de> - 2016-05-17 09:13 +0200

csiph-web