mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
All @jonchang’s suggestions for py-venvs
Refs: https://github.com/teaxyz/pantry.extra/pull/93#issuecomment-1372917672
This commit is contained in:
parent
9d9621841a
commit
2d7c7a40c1
2 changed files with 8 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/mesonbuild/meson/releases/download/{{ version }}/meson-{{ version }}.tar.gz
|
url: https://github.com/mesonbuild/meson/releases/download/{{version}}/meson-{{version}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
|
|
@ -17,28 +17,17 @@ cd "$PREFIX"
|
||||||
libexec/bin/pip install -v --no-binary :all: --ignore-installed $CMD_NAME
|
libexec/bin/pip install -v --no-binary :all: --ignore-installed $CMD_NAME
|
||||||
mkdir bin
|
mkdir bin
|
||||||
|
|
||||||
mv libexec/bin/$CMD_NAME libexec/bin/teaxyz.py
|
cat <<EOF >bin/$CMD_NAME
|
||||||
|
|
||||||
cd bin
|
|
||||||
ln -s ../libexec/bin/$CMD_NAME $CMD_NAME
|
|
||||||
|
|
||||||
cd ../libexec/bin
|
|
||||||
fix-shebangs.ts *
|
|
||||||
|
|
||||||
cat <<EOF >$CMD_NAME
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
self="\${BASH_SOURCE[0]}"
|
self="\${BASH_SOURCE[0]}"
|
||||||
if test -L "\$self"; then
|
LIBEXEC="\$(cd "\$(dirname "\$self")"/../libexec/bin && pwd)"
|
||||||
prefix="\$(dirname "\$self")"
|
|
||||||
suffix="\$(dirname \$(readlink \$self))"
|
|
||||||
LIBEXEC="\$(cd \$prefix/\$suffix && pwd)"
|
|
||||||
else
|
|
||||||
LIBEXEC="\$(cd "\$(dirname "\$self")" && pwd)"
|
|
||||||
fi
|
|
||||||
source "\$LIBEXEC/activate"
|
source "\$LIBEXEC/activate"
|
||||||
exec "\$LIBEXEC"/teaxyz.py "\$@"
|
exec "\$LIBEXEC"/$CMD_NAME "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $CMD_NAME
|
chmod +x bin/$CMD_NAME
|
||||||
|
|
||||||
|
cd libexec/bin
|
||||||
|
fix-shebangs.ts *
|
||||||
|
|
||||||
rm Activate.ps1 activate.csh activate.fish
|
rm Activate.ps1 activate.csh activate.fish
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue