fix(pipenv)

closes #6357
closes #6356 (yanked)
This commit is contained in:
Jacob Heider 2024-06-07 12:07:46 -04:00 committed by Jacob Heider
parent f66fba226b
commit 9263cc1a6d

View file

@ -14,7 +14,7 @@ dependencies:
build:
dependencies:
python.org: ~3.11 # approx. 3 older versions wont work with python 3.12
python.org: ~3.11 # approx. 3 older versions wont work with python 3.12
crates.io/semverator: '*'
script:
- bkpyvenv stage {{prefix}} {{version}}
@ -22,8 +22,7 @@ build:
- bkpyvenv seal {{prefix}} pipenv
# create exec scripts for pipenv so it can auto install and use the pythons it wants
- working-directory:
${{prefix}}/bin
- working-directory: ${{prefix}}/bin
run: |
v=3.6
vMax=3.12 #FIXME determine dynamically or even script this in the shim
@ -34,6 +33,10 @@ build:
chmod +x python$v
done
# needs libpython
- run: cp -a {{deps.python.org.prefix}}/lib/libpython* .
working-directory: ${{prefix}}/lib/
runtime:
env:
PIPENV_IGNORE_VIRTUALENVS: 1
@ -44,18 +47,18 @@ test:
# changed to python3.8; 3.7 generates a lockfile resolver error
- run: |
source <(pkgx +python@3.8)
pipenv --python 3.8
pipenv --verbose install pycowsay
pipenv run pycowsay "Hello World"
working-directory:
a
working-directory: a
- run: |
source <(pkgx +python@3.10)
pipenv --python 3.10
pipenv install pycowsay
pipenv run pycowsay "Hello World"
working-directory:
b
working-directory: b
provides:
- bin/pipenv