add before test variable

This commit is contained in:
Grzegorz Bokota
2020-03-07 12:24:15 +01:00
committed by Grzegorz Bokota
parent ce5fc12b5f
commit 4e9316036c
9 changed files with 354 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
from setuptools import setup, Extension
import sys, os
# assert that the Python version as written to pythonversion.txt in the CIBW_BEFORE_BUILD step
# is the same one as is currently running.
version_file = 'c:\\pythonversion.txt' if sys.platform == 'win32' else '/tmp/pythonversion.txt'
if os.path.exists(version_file):
os.remove(version_file)
# check that the executable also was written
executable_file = 'c:\\pythonexecutable.txt' if sys.platform == 'win32' else '/tmp/pythonexecutable.txt'
if os.path.exists(executable_file):
os.remove(executable_file)
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],
version="0.1.0",
)