forked from M-Labs/artiq
windows: fix python module installation paths
This commit is contained in:
parent
5ebccc2378
commit
afd4f369d0
|
@ -45,11 +45,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659695040,
|
"lastModified": 1659710552,
|
||||||
"narHash": "sha256-vJG1IsDJ1KMbAf9jEIwsVsC6NDiGYst4/o4k9xPBqaI=",
|
"narHash": "sha256-BFM0wnEaWFBHwHNET2KZBB0LxKGA44asnDBnMXQ6KMA=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "fff4b651697263f403f5270d09c08797572a3719",
|
"rev": "813bfa92a7b56fa5fe8d11bac4c224b84903e7c0",
|
||||||
"revCount": 797,
|
"revCount": 798,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.m-labs.hk/m-labs/nac3.git"
|
"url": "https://git.m-labs.hk/m-labs/nac3.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,7 @@ sha256sums=("SKIP")
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
mkdir mingw64
|
mkdir mingw64
|
||||||
export PYTHONPATH=`pwd`/mingw64/lib/python3.9/site-packages
|
export PYTHONPATH=`pwd`/mingw64/lib/python3.10/site-packages
|
||||||
chmod +w -R source
|
chmod +w -R source
|
||||||
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
|
||||||
|
@ -15,7 +15,7 @@ build() {
|
||||||
|
|
||||||
# setuptools creates this file if it doesn't already exist, which causes conflicts between pacman packages
|
# setuptools creates this file if it doesn't already exist, which causes conflicts between pacman packages
|
||||||
# see: https://corte.si/posts/code/setuptoolssucks/
|
# see: https://corte.si/posts/code/setuptoolssucks/
|
||||||
rm -f mingw64/lib/python3.9/site-packages/easy-install.pth
|
rm -f mingw64/lib/python3.10/site-packages/easy-install.pth
|
||||||
# patch broken shebangs (Z:/nix/store/...)
|
# patch broken shebangs (Z:/nix/store/...)
|
||||||
for entrypoint in mingw64/bin/*-script.py; do
|
for entrypoint in mingw64/bin/*-script.py; do
|
||||||
[ -f "$entrypoint" ] || continue
|
[ -f "$entrypoint" ] || continue
|
||||||
|
|
Loading…
Reference in New Issue