Files
cibuildwheel/test/03_before_build/setup.py
T

18 lines
524 B
Python
Raw Normal View History

from setuptools import setup, Extension
import sys
# here we assert that the Python version as written to version.txt in the CIBW_BEFORE_BUILD step
# is the same one as is currently running.
if sys.argv[-1] != '--name':
2017-04-10 22:25:34 +01:00
with open('pythonversion.txt') as f:
stored_version = f.read()
2017-04-10 21:56:26 +01:00
print('stored_version', stored_version)
print('sys.version', sys.version)
assert stored_version == sys.version
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],
version="0.1.0",
)