Commit 16857683 authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Use standard library venv instead of third party virtualenv package

Now that we have dropped wheels for Python 2.7, we can rely upon
the Python standard library's `venv` module instead of the third
party `virtualenv` package.
parent f0ed3e94
......@@ -968,8 +968,9 @@ platform:macos:sierra:
# Bundle and fix up dependent shared libraries
- auditwheel repair wheel/*.whl
# Test: do some simple sanity checks in a virtualenv
- ${PYPREFIX}/bin/virtualenv test
- ${PYPREFIX}/bin/python -m venv test
- source test/bin/activate
- pip install --upgrade pip
- pip install wheelhouse/*
- python -c 'import lal, lalframe, lalmetaio, lalsimulation; series = lal.CreateREAL8FrequencySeries("psd", 0, 0, 1, None, 4096); lalsimulation.SimNoisePSDaLIGOAPlusDesignSensitivityT1800042(series, 10)'
needs: []
......@@ -989,7 +990,7 @@ platform:macos:sierra:
script:
- PYVERS=$(echo ${CI_JOB_NAME} | sed 's/.*:cp\(.\)\(.\).*/\1.\2/')
# Enter virtualenv so that we have a controlled version of Numpy
- virtualenv-${PYVERS} env
- python${PYVERS} -m venv env
- source env/bin/activate
- python -m pip install
git+https://github.com/lpsinger/delocate@fix-duplicate-libs
......@@ -1001,7 +1002,7 @@ platform:macos:sierra:
# Bundle and fix up dependent shared libraries
- delocate-wheel -v -w wheelhouse wheel/*.whl
# Test: do some simple sanity checks in a virtualenv
- virtualenv-${PYVERS} test
- python${PYVERS} -m venv test
- source test/bin/activate
- python -m pip install wheelhouse/*
- python -c 'import lal, lalframe, lalmetaio, lalsimulation; series = lal.CreateREAL8FrequencySeries("psd", 0, 0, 1, None, 4096); lalsimulation.SimNoisePSDaLIGOAPlusDesignSensitivityT1800042(series, 10)'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment