apply updated simpler python-venv.sh usage

This commit is contained in:
Max Howell 2022-12-20 08:02:06 -05:00
parent 0029e3f4bf
commit 454fc591cf

View file

@ -2,9 +2,6 @@ distributable:
url: https://github.com/yt-dlp/yt-dlp/releases/download/{{version}}/yt-dlp.tar.gz url: https://github.com/yt-dlp/yt-dlp/releases/download/{{version}}/yt-dlp.tar.gz
strip-components: 1 strip-components: 1
#NOTE copy-pasta from mesonbuild.com
#TODO make a brewkit/ script to do this automatically
versions: versions:
github: yt-dlp/yt-dlp github: yt-dlp/yt-dlp
strip: /^yt-dlp / strip: /^yt-dlp /
@ -14,13 +11,7 @@ dependencies:
gnu.org/bash: '>=2' # for our venv/relocation scripts: feel free to fix that gnu.org/bash: '>=2' # for our venv/relocation scripts: feel free to fix that
build: build:
script: | python-venv.sh {{prefix}}/bin/yt-dlp
export VERSION={{version}}
export PREFIX={{prefix}}
export PYTHON_VERSION={{deps.python.org.version}}
export PYTHON_VERSION_MAJ={{deps.python.org.version.major}}
export PYTHON_VERSION_MIN={{deps.python.org.version.minor}}
python-venv.sh yt-dlp yt-dlp.org
test: | test: |
yt-dlp --simulate https://youtu.be/pOtd1cbOP7k yt-dlp --simulate https://youtu.be/pOtd1cbOP7k