migrate(pipx, venv) (#6004)

* migrate(pipx, venv)

suggested by @felipecrs ([here](587441621e (commitcomment-141416453))) so we don't lock users of these packages out of newer pythons (now that 3.12 is reasonably well-supported).

* link to venv/lib

* venv is picky
This commit is contained in:
Jacob Heider 2024-04-26 19:40:41 -04:00 committed by GitHub
parent 0e87d56905
commit 9dde2d6f14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 7 deletions

View file

@ -6,13 +6,17 @@ versions:
github: pypa/pipx
dependencies:
python.org: '>=3<3.12'
pkgx.sh: ^1
build:
python-venv.sh "{{prefix}}"/bin/pipx
dependencies:
python.org: '>=3<3.12'
script:
- bkpyvenv stage '{{prefix}}' {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal '{{prefix}}' pipx
test:
pipx run pycowsay moooo!
test: pipx run pycowsay moooo!
provides:
- bin/pipx

View file

@ -7,10 +7,20 @@ versions:
strip: /^v/
dependencies:
python.org: '>=3.7<3.12'
pkgx.sh: ^1
libexpat.github.io: ^2
openssl.org: ^1.1
build:
python-venv.sh {{prefix}}/bin/virtualenv
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'
test:
script: |