[pypy-commit] cffi default: enable testing on windows, 64 bit
mattip
noreply at buildbot.pypy.org
Tue Jan 20 22:47:41 CET 2015
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r1641:a48d6875b570
Date: 2015-01-20 23:48 +0200
http://bitbucket.org/cffi/cffi/changeset/a48d6875b570/
Log: enable testing on windows, 64 bit
diff --git a/testing/test_ownlib.py b/testing/test_ownlib.py
--- a/testing/test_ownlib.py
+++ b/testing/test_ownlib.py
@@ -118,8 +118,12 @@
productdir = os.path.join(toolsdir, os.pardir, os.pardir, "VC")
productdir = os.path.abspath(productdir)
vcvarsall = os.path.join(productdir, "vcvarsall.bat")
+ # 64?
+ arch = 'x86'
+ if sys.maxsize > 2**32:
+ arch = 'amd64'
if os.path.isfile(vcvarsall):
- cmd = '"%s"' % vcvarsall + ' & cl.exe testownlib.c ' \
+ cmd = '"%s" %s' % (vcvarsall, arch) + ' & cl.exe testownlib.c ' \
' /LD /Fetestownlib.dll'
subprocess.check_call(cmd, cwd = str(udir), shell=True)
cls.module = str(udir.join('testownlib.dll'))
More information about the pypy-commit
mailing list