A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/106524.html below:

[Python-Dev] [Python-checkins] r87118 - in python/branches/py3k: Mac/BuildScript/build-installer.py Makefile.pre.in

[Python-Dev] [Python-checkins] r87118 - in python/branches/py3k: Mac/BuildScript/build-installer.py Makefile.pre.in [Python-Dev] [Python-checkins] r87118 - in python/branches/py3k: Mac/BuildScript/build-installer.py Makefile.pre.inÉric Araujo merwok at netwok.org
Tue Dec 7 18:24:33 CET 2010
Hello,

> Author: ronald.oussoren
> New Revision: 87118
> Log: Two small changes to adjust framework builds to the new stable ABI
> 
> Modified: python/branches/py3k/Mac/BuildScript/build-installer.py
> ==============================================================================
> +    LDVERSION=None
> +    VERSION=None
> +    ABIFLAGS=None
> +
> +    with open(os.path.join(buildDir, 'Makefile')) as fp:
> +        for ln in fp:
> +            if ln.startswith('VERSION='):
> +                VERSION=ln.split()[1]
> +            if ln.startswith('ABIFLAGS='):
> +                ABIFLAGS=ln.split()[1]
> +
> +            if ln.startswith('LDVERSION='):
> +                LDVERSION=ln.split()[1]
> +
> +    LDVERSION = LDVERSION.replace('$(VERSION)', VERSION)
> +    LDVERSION = LDVERSION.replace('$(ABIFLAGS)', ABIFLAGS)

Isn’t this a perfect use case for the new sysconfig module?

Regards

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4