diff --git a/test/03_before_build/environment.json b/test/03_before_build/environment.json index ef0a0fab..d541431a 100644 --- a/test/03_before_build/environment.json +++ b/test/03_before_build/environment.json @@ -1,3 +1,3 @@ { - "CIBW_BEFORE_BUILD": "echo $PATH && {python} -c \"import sys; open('version.txt', 'w').write(sys.version)\"" + "CIBW_BEFORE_BUILD": "{python} -c \"import sys; open('pythonversion.txt', 'w').write(sys.version)\"" } diff --git a/test/03_before_build/setup.py b/test/03_before_build/setup.py index afc30692..a05deba2 100644 --- a/test/03_before_build/setup.py +++ b/test/03_before_build/setup.py @@ -4,7 +4,7 @@ import sys # here we assert that the Python version as written to version.txt in the CIBW_BEFORE_BUILD step # is the same one as is currently running. if sys.argv[-1] != '--name': - with open('version.txt') as f: + with open('pythonversion.txt') as f: stored_version = f.read() print('stored_version', stored_version) print('sys.version', sys.version)