2023-02-26 15:23:44 +03:00
|
|
|
distributable:
|
2023-04-04 01:41:59 +03:00
|
|
|
url: https://github.com/pypa/virtualenv/archive/refs/tags/{{ version }}.tar.gz
|
2023-02-26 15:23:44 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2024-04-27 02:40:41 +03:00
|
|
|
github: pypa/virtualenv/releases/tags # reads github *releases* but uses the tags of those releases
|
2023-02-26 15:23:44 +03:00
|
|
|
strip: /^v/
|
|
|
|
|
|
|
|
dependencies:
|
2024-04-27 02:40:41 +03:00
|
|
|
pkgx.sh: ^1
|
|
|
|
libexpat.github.io: ^2
|
|
|
|
openssl.org: ^1.1
|
2023-02-26 15:23:44 +03:00
|
|
|
|
|
|
|
build:
|
2024-04-27 02:40:41 +03:00
|
|
|
dependencies:
|
|
|
|
python.org: '>=3.7<3.12'
|
|
|
|
script:
|
|
|
|
- bkpyvenv stage '{{prefix}}' {{version}}
|
|
|
|
- ${{prefix}}/venv/bin/pip install .
|
|
|
|
- bkpyvenv seal '{{prefix}}' virtualenv
|
|
|
|
# needs this to find its libpython on linux
|
|
|
|
- run: cp '{{deps.python.org.prefix}}/lib/libpython'* .
|
|
|
|
working-directory: '{{prefix}}/lib'
|
2023-02-26 15:23:44 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
# verify version
|
|
|
|
echo "$(virtualenv --version)" | grep "^virtualenv {{version}}"
|
|
|
|
|
|
|
|
# create venv in venv_dir
|
|
|
|
virtualenv venv_dir
|
|
|
|
WANT=$(venv_dir/bin/python -c 'import sys; print(sys.prefix)')
|
|
|
|
source venv_dir/bin/activate
|
|
|
|
test $WANT=$VIRTUAL_ENV # verify that venv activates successfully
|
|
|
|
|
|
|
|
pip install pycowsay # install a package inside the venv
|
|
|
|
|
|
|
|
deactivate # exit venv
|
|
|
|
venv_dir/bin/pycowsay "All tests pass!" # verify that pycowsay was installed inside the venv
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/virtualenv
|