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


Groups > comp.lang.python > #24762

Re: distutils that supports msvc10 and that can be backfitted into Python 2.6

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'compiler': 0.05; 'distutils': 0.05; 'skip:` 10': 0.05; 'setup.py': 0.07; 'tom': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:distutils': 0.09; 'subject:into': 0.09; 'day..': 0.16; 'extensions:': 0.16; 'message- id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'registry': 0.16; 'subject: \n ': 0.16; 'var.': 0.16; 'vs2010': 0.16; 'wrote:': 0.17; 'detect': 0.17; 'variable': 0.20; 'define': 0.20; 'skip:v 30': 0.20; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'compiled': 0.27; 'header:X-Complaints-To:1': 0.28; 'actual': 0.28; 'environment': 0.29; 'falls': 0.29; 'python"': 0.29; 'points': 0.29; 'skip:- 10': 0.32; 'to:addr:python-list': 0.33; 'recommended': 0.33; 'there': 0.35; 'received:org': 0.36; 'modules': 0.36; 'subject:: ': 0.38; 'supports': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'back': 0.62; 'from:addr:mail.com': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mero <ormax3@mail.com>
Subject Re: distutils that supports msvc10 and that can be backfitted into Python 2.6
Date Mon, 02 Jul 2012 06:40:10 +0300
References <B8F5CDE7FC952A4580ABD28F488EF279070550D2@AG-DCC-MBX01.dsone.3ds.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 188.244.108.183
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <B8F5CDE7FC952A4580ABD28F488EF279070550D2@AG-DCC-MBX01.dsone.3ds.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1696.1341200709.4697.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1341200709 news.xs4all.nl 6910 [2001:888:2000:d::a6]:36223
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24762

Show key headers only | View raw


On 26/06/2012 23:24, KACVINSKY Tom wrote:
> I have need for a distutils that supports msvc10, and which can be
> back-fitted into Python 2.6.  Is there such a beast?

One trick I found was to define an environment variable *VS90COMNTOOLS*
that points to the actual VS2010 location:

    VS90COMNTOOLS=%VS100COMNTOOLS%

This is because distutils looks for VS2008 in the registry and falls
back to the env. var. above, hence we trick it to detect VS2010 and call
`vcvarsall.bat` when compiling extensions:

    python setup.py build --compiler=msvc

Just keep in mind that it is recommended that "extension modules be
compiled with the same compiler that was used to compile Python" which
is still VS2008 to this day..

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


Thread

Re: distutils that supports msvc10 and that can be backfitted into Python 2.6 Mero <ormax3@mail.com> - 2012-07-02 06:40 +0300

csiph-web