Files
cibuildwheel/test/14_before_all/setup.py
T

20 lines
433 B
Python
Raw Normal View History

2020-05-11 17:09:54 +02:00
from setuptools import (
Extension,
setup,
)
# assert that the Python version as written to text_info.txt in the CIBW_BEFORE_ALL step
# is the same one as is currently running.
with open("text_info.txt") as f:
stored_text = f.read()
2020-05-11 17:28:47 +02:00
print("## stored text: " + stored_text)
2020-05-15 13:13:13 +02:00
assert stored_text == "sample text 123"
2020-05-11 17:09:54 +02:00
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],
version="0.1.0",
)