Add BEFORE_ALL options

This commit is contained in:
Grzegorz Bokota
2020-06-22 13:55:04 +02:00
parent 8bfc313d02
commit 6501470357
9 changed files with 129 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
import os
import sys
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()
print("## stored text: "+stored_text)
assert stored_text == "sample text"
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],
version="0.1.0",
)