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


Groups > comp.lang.python > #36961

RE: Thorough Python 2.7.3 Windows Build Documentation?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <Arah.Leonard@bruker-axs.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; 'distutils': 0.05; 'subject:Windows': 0.09; 'python': 0.09; 'useless': 0.09; 'windows,': 0.09; 'skip:p 40': 0.15; "module's": 0.16; 'subject:2.7.3': 0.16; 'sysconfig': 0.16; 'windows:': 0.16; 'fix': 0.17; 'config': 0.17; '>>>': 0.18; 'windows': 0.19; 'module': 0.19; 'to:name:python-list@python.org': 0.20; 'import': 0.21; 'work.': 0.23; 'linux': 0.24; 'header:In-Reply-To:1': 0.25; 'common': 0.26; "i'm": 0.29; "skip:' 10": 0.30; 'that.': 0.30; "skip:' 20": 0.32; 'skip:s 30': 0.33; 'anyone': 0.33; 'to:addr :python-list': 0.33; 'that,': 0.34; 'version': 0.34; 'list': 0.35; 'subject:?': 0.35; 'really': 0.36; 'but': 0.36; 'compare': 0.36; 'received:71': 0.36; "didn't": 0.36; 'test': 0.36; 'charset:us- ascii': 0.36; 'problems': 0.36; 'subject:: ': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'skip:u 10': 0.60; 'most': 0.61; 'containing': 0.61; 'free': 0.61; 'love': 0.63; 'results': 0.65; 'total': 0.65; 'subject:Build': 0.65; 'subject:skip:D 10': 0.65; 'wish': 0.70; 'hey,': 0.72; 'absolutely': 0.84; 'yours.': 0.93
From "Leonard, Arah" <Arah.Leonard@bruker-axs.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: Thorough Python 2.7.3 Windows Build Documentation?
Thread-Topic Thorough Python 2.7.3 Windows Build Documentation?
Thread-Index AQHN9NtFDSQparWUR2mEPGHjEuQjhZhN0w0g
Date Thu, 17 Jan 2013 18:25:06 +0000
References <mailman.591.1358436638.2939.python-list@python.org> <6df5947a-5665-4b92-906d-5aba9e399b5b@d10g2000yqe.googlegroups.com>
In-Reply-To <6df5947a-5665-4b92-906d-5aba9e399b5b@d10g2000yqe.googlegroups.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.73.1.96]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 17 Jan 2013 18:25:08.0044 (UTC) FILETIME=[FA7490C0:01CDF4DF]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.605.1358447110.2939.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358447110 news.xs4all.nl 6885 [2001:888:2000:d::a6]:33791
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36961

Show key headers only | View raw


>Try dumping the build configuration parameters:
>
>   >>> import pprint, sysconfig
>   >>> pprint.pprint(sysconfig.get_config_vars())
>
>Then you can compare the existing version with yours.

I would absolutely love to be able to do that and have it work.  Most unfortunately that only works on *nix OSes.  The Python sysconfig module's config vars are almost non-existent on Windows with a really tiny and almost useless subset.  :(  I really wish someone would fix that, but hey, it's free so I'm not complaining.  Just wishing.  In case anyone else didn't know that, here's the results containing the complete and total list of config vars on Windows:

>>> import pprint, sysconfig
>>> pprint.pprint(sysconfig.get_config_vars())
{'BINDIR': 'C:\\Python27',
 'BINLIBDEST': 'C:\\Python27\\Lib',
 'EXE': '.exe',
 'INCLUDEPY': 'C:\\Python27\\Include',
 'LIBDEST': 'C:\\Python27\\Lib',
 'SO': '.pyd',
 'VERSION': '27',
 'base': 'C:\\Python27',
 'exec_prefix': 'C:\\Python27',
 'platbase': 'C:\\Python27',
 'prefix': 'C:\\Python27',
 'projectbase': 'C:\\Python27',
 'py_version': '2.7.3',
 'py_version_nodot': '27',
 'py_version_short': '2.7',
 'srcdir': 'C:\\Python27',
 'userbase': 'C:\\Documents and Settings\\Administrator\\Application Data\\Python'}

That's it.  It's actually also a common cause of problems in distutils and the likes when people write their module installers for Linux and never test those scriptlets on Windows, not realizing that in Python on Windows the sysconfig / distutils.sysconfig config vars are hamstrung like that.

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


Thread

Thorough Python 2.7.3 Windows Build Documentation? "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-17 15:29 +0000
  Re: Thorough Python 2.7.3 Windows Build Documentation? donarb <donarb@nwlink.com> - 2013-01-17 09:51 -0800
    RE: Thorough Python 2.7.3 Windows Build Documentation? "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-17 18:25 +0000

csiph-web