2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00
repo/extra/python-gpep517/build
2023-12-27 19:22:14 -06:00

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"