forked from M-Labs/artiq
1
0
Fork 0

windows: fix python module installation paths

This commit is contained in:
Sebastien Bourdeauducq 2022-08-05 22:44:09 +08:00
parent 5ebccc2378
commit afd4f369d0
2 changed files with 6 additions and 6 deletions

View File

@ -45,11 +45,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1659695040,
"narHash": "sha256-vJG1IsDJ1KMbAf9jEIwsVsC6NDiGYst4/o4k9xPBqaI=",
"lastModified": 1659710552,
"narHash": "sha256-BFM0wnEaWFBHwHNET2KZBB0LxKGA44asnDBnMXQ6KMA=",
"ref": "master",
"rev": "fff4b651697263f403f5270d09c08797572a3719",
"revCount": 797,
"rev": "813bfa92a7b56fa5fe8d11bac4c224b84903e7c0",
"revCount": 798,
"type": "git",
"url": "https://git.m-labs.hk/m-labs/nac3.git"
},

View File

@ -7,7 +7,7 @@ sha256sums=("SKIP")
build() {
mkdir mingw64
export PYTHONPATH=`pwd`/mingw64/lib/python3.9/site-packages
export PYTHONPATH=`pwd`/mingw64/lib/python3.10/site-packages
chmod +w -R source
cd source
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
# 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/...)
for entrypoint in mingw64/bin/*-script.py; do
[ -f "$entrypoint" ] || continue