mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-27 08:16:19 +00:00
14 lines
306 B
Bash
Executable File
14 lines
306 B
Bash
Executable File
#!/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"
|