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