Set CIBUILDWHEEL environment variable to 1 during build

This commit is contained in:
mayeut
2017-08-29 18:18:40 +02:00
parent 9faa8f8728
commit 0a7a1b8fb3
4 changed files with 22 additions and 0 deletions
+5
View File
@@ -1,5 +1,10 @@
import os
from setuptools import setup, Extension
if os.environ.get('CIBUILDWHEEL', '0') != '1':
raise Exception('CIBUILDWHEEL environment variable is not set to 1')
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],