change 02_test to check if virtualenv is properly used

This commit is contained in:
Grzegorz Bokota
2020-03-01 10:14:32 +01:00
parent 774af30d71
commit 01dd18bbf8
4 changed files with 21 additions and 0 deletions
+1
View File
@@ -209,6 +209,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
os.path.join(venv_dir, 'bin'),
virtualenv_env['PATH'],
])
virtualenv_env["__CIBW_VIRTUALENV_PATH__"] = venv_dir
# check that we are using the Python from the virtual environment
call(['which', 'python'], env=virtualenv_env)