Fixing indentation error, and keeping only check for setup.py in project root directory in __main__.py

This commit is contained in:
Yannick Jadoul
2018-11-29 23:26:10 +01:00
parent 3d23cbf2a6
commit ccfc3c3aa1
3 changed files with 5 additions and 18 deletions
+2
View File
@@ -5,6 +5,7 @@ import sys, os
CIBW_TEST_VAR = os.environ.get('CIBW_TEST_VAR')
CIBW_TEST_VAR_2 = os.environ.get('CIBW_TEST_VAR_2')
PATH = os.environ.get('PATH')
if CIBW_TEST_VAR != 'a b c':
raise Exception('CIBW_TEST_VAR should equal "a b c". It was "%s"' % CIBW_TEST_VAR)
if CIBW_TEST_VAR_2 != '1':
@@ -14,6 +15,7 @@ if '/opt/cibw_test_path' not in PATH:
if '$PATH' in PATH:
raise Exception('$PATH should be expanded in PATH. It was "%s"' % PATH)
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],