Fix tests on windows - shebang don't work so great there!

This commit is contained in:
Joe Rickerby
2020-04-11 09:39:25 +01:00
parent 21e6b99884
commit 7ebe8fef55
4 changed files with 3 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
print('before_build.py executed!')
@@ -1,3 +0,0 @@
#!/bin/bash
echo 'before_build.sh executed.'
+1 -1
View File
@@ -8,7 +8,7 @@ def test():
package_dir = os.path.join(project_dir, 'src', 'spam')
# build the wheels
actual_wheels = utils.cibuildwheel_run(project_dir, package_dir=package_dir, add_env={
'CIBW_BEFORE_BUILD': '{project}/bin/before_build.sh',
'CIBW_BEFORE_BUILD': 'python {project}/bin/before_build.py',
'CIBW_TEST_COMMAND': 'python {package}/test/run_tests.py',
# this shouldn't depend on the version of python, so build only
# CPython 3.6
@@ -1 +1 @@
print('run_tests.py called!')
print('run_tests.py executed!')