diff options
author | David Cournapeau <cournape@gmail.com> | 2009-04-05 09:04:10 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-04-05 09:04:10 +0000 |
commit | 826add2f128029d6afb85e44de224f3d59837f6e (patch) | |
tree | 2dfb020f7450b5461e3b12fe7d3ae4a750fc19cf /pavement.py | |
parent | 9fed0f5ce301cdaea1b5b9eafdce42b7a2eeb2b1 (diff) | |
download | numpy-826add2f128029d6afb85e44de224f3d59837f6e.tar.gz |
Use environment instead of config files for superpack arc config: simpler and more reliable.
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/pavement.py b/pavement.py index 83c1861bc..0434e368f 100644 --- a/pavement.py +++ b/pavement.py @@ -257,14 +257,11 @@ def sdist(): #------------------ # Wine-based builds #------------------ -_SSE3_CFG = r"""[atlas] -library_dirs = C:\local\lib\yop\sse3""" -_SSE2_CFG = r"""[atlas] -library_dirs = C:\local\lib\yop\sse2""" -_NOSSE_CFG = r"""[DEFAULT] -library_dirs = C:\local\lib\yop\nosse""" +SSE3_CFG = {'BLAS': r'C:\local\lib\yop\sse3', 'LAPACK': r'C:\local\lib\yop\sse3'} +SSE2_CFG = {'BLAS': r'C:\local\lib\yop\sse2', 'LAPACK': r'C:\local\lib\yop\sse2'} +NOSSE_CFG = {'BLAS': r'C:\local\lib\yop\nosse', 'LAPACK': r'C:\local\lib\yop\nosse'} -SITECFG = {"sse2" : _SSE2_CFG, "sse3" : _SSE3_CFG, "nosse" : _NOSSE_CFG} +SITECFG = {"sse2" : SSE2_CFG, "sse3" : SSE3_CFG, "nosse" : NOSSE_CFG} def internal_wininst_name(arch, ismsi=False): """Return the name of the wininst as it will be inside the superpack (i.e. @@ -360,20 +357,8 @@ def bdist_wininst_simple(): """Simple wininst-based installer.""" _bdist_wininst(pyver=options.wininst.pyver) -def _bdist_wininst(pyver, cfgstr=WINE_SITE_CFG): - site = paver.path.path('site.cfg') - exists = site.exists() - try: - if exists: - site.move('site.cfg.bak') - a = open(str(site), 'w') - a.writelines(cfgstr) - a.close() - sh('%s setup.py build -c mingw32 bdist_wininst' % WINE_PYS[pyver]) - finally: - site.remove() - if exists: - paver.path.path('site.cfg.bak').move(site) +def _bdist_wininst(pyver, cfg_env=WINE_SITE_CFG): + subprocess.check_call([WINE_PYS[pyver], 'setup.py', 'build', '-c', 'mingw32', 'bdist_wininst'], env=cfg_env) #------------------- # Mac OS X installer |