mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-20 05:06:58 +00:00
14 lines
306 B
Plaintext
14 lines
306 B
Plaintext
|
#!/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"
|