mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(python^3.12)
This commit is contained in:
parent
7a42577381
commit
7d21407668
|
@ -62,9 +62,10 @@ build:
|
|||
if: ^2
|
||||
|
||||
# fixes the build scripts so they use the standard environment variables we set
|
||||
- |
|
||||
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
|
||||
- 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_include_dirs = .*|system_include_dirs = os.getenv("CPATH").split(":")|' ./setup.py
|
||||
if: <3.12
|
||||
|
||||
# older versions use a different config dir
|
||||
- run: |
|
||||
|
@ -122,6 +123,16 @@ build:
|
|||
- run: patch -p1 < props/patch3.4.diff
|
||||
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
|
||||
- make --jobs {{ hw.concurrency }}
|
||||
- make install
|
||||
|
|
Loading…
Reference in a new issue