mirror of https://github.com/m-labs/artiq.git
windows: fix more setuptools problems
This commit is contained in:
parent
f704f3daa4
commit
176490a083
|
@ -12,7 +12,19 @@ build() {
|
||||||
cd source
|
cd source
|
||||||
wine-msys2-build python setup.py install --single-version-externally-managed --prefix=../mingw64 --record=setuptools-sucks.txt
|
wine-msys2-build python setup.py install --single-version-externally-managed --prefix=../mingw64 --record=setuptools-sucks.txt
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
# setuptools creates this file if it doesn't already exist, which causes conflicts between pacman packages
|
||||||
|
# see: https://corte.si/posts/code/setuptoolssucks/
|
||||||
rm -f mingw64/lib/python3.9/site-packages/easy-install.pth
|
rm -f mingw64/lib/python3.9/site-packages/easy-install.pth
|
||||||
|
# patch broken shebangs (Z:/nix/store/...)
|
||||||
|
for entrypoint in mingw64/bin/*-script.py; do
|
||||||
|
[ -f "$entrypoint" ] || continue
|
||||||
|
sed -i "1s|#!.*|#!python|" $entrypoint
|
||||||
|
done
|
||||||
|
for entrypoint in mingw64/bin/*-script.pyw; do
|
||||||
|
[ -f "$entrypoint" ] || continue
|
||||||
|
sed -i "1s|#!.*|#!pythonw|" $entrypoint
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Reference in New Issue