2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-20 05:30:11 -07:00
repo/extra/python-gpep517/build

14 lines
306 B
Plaintext
Raw Normal View History

2023-12-27 18:22:14 -07:00
#!/bin/sh -e
patch -p1 < default-bytecode-levels.patch
sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
mkdir -p "$1/$sitedir"
cp -pR gpep517 "$1/$sitedir"
python -m compileall "$1/$sitedir"
mkdir -p "$1/usr/bin"
cp gpep517.bin "$1/usr/bin/gpep517"
chmod 755 "$1/usr/bin/gpep517"