mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(python^3.12)
This commit is contained in:
parent
7a42577381
commit
7d21407668
1 changed files with 14 additions and 3 deletions
|
@ -62,9 +62,10 @@ build:
|
||||||
if: ^2
|
if: ^2
|
||||||
|
|
||||||
# fixes the build scripts so they use the standard environment variables we set
|
# fixes the build scripts so they use the standard environment variables we set
|
||||||
- |
|
- run: |
|
||||||
sed -i.bak -e 's|system_lib_dirs = .*|system_lib_dirs = os.getenv("LIBRARY_PATH").split(":")|' ./setup.py
|
sed -i.bak -e 's|system_lib_dirs = .*|system_lib_dirs = os.getenv("LIBRARY_PATH").split(":")|' ./setup.py
|
||||||
sed -i.bak -e 's|system_include_dirs = .*|system_include_dirs = os.getenv("CPATH").split(":")|' ./setup.py
|
sed -i.bak -e 's|system_include_dirs = .*|system_include_dirs = os.getenv("CPATH").split(":")|' ./setup.py
|
||||||
|
if: <3.12
|
||||||
|
|
||||||
# older versions use a different config dir
|
# older versions use a different config dir
|
||||||
- run: |
|
- run: |
|
||||||
|
@ -122,6 +123,16 @@ build:
|
||||||
- run: patch -p1 < props/patch3.4.diff
|
- run: patch -p1 < props/patch3.4.diff
|
||||||
if: '~3.4.1'
|
if: '~3.4.1'
|
||||||
|
|
||||||
|
# 3.12.0 needs help with mpdecimal
|
||||||
|
- run: |
|
||||||
|
sed -i.bak 's/libmpdec_machine=universal/libmpdec_machine=x64/' configure
|
||||||
|
rm configure.bak
|
||||||
|
if: darwin/x86-64
|
||||||
|
- run: |
|
||||||
|
sed -i.bak 's/libmpdec_machine=universal/libmpdec_machine=uint128/' configure
|
||||||
|
rm configure.bak
|
||||||
|
if: darwin/aarch64
|
||||||
|
|
||||||
- ./configure $ARGS
|
- ./configure $ARGS
|
||||||
- make --jobs {{ hw.concurrency }}
|
- make --jobs {{ hw.concurrency }}
|
||||||
- make install
|
- make install
|
||||||
|
|
Loading…
Reference in a new issue