Author: mattip <matti.pi...@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'))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to