2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/extra/python-installer/build

12 lines
285 B
Plaintext
Raw Normal View History

2023-12-28 01:24:35 +00:00
#!/bin/sh -e
sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
2023-12-29 12:10:48 +00:00
unzip -d build "installer-$2-py3-none-any.whl"
2023-12-28 01:24:35 +00:00
(cd build; patch -p1 < default-bytecode-levels.patch)
mkdir -p "$1/$sitedir"
cp -pR build/installer* "$1/$sitedir"
python -m compileall "$1/$sitedir"