fix(python^3.12)

This commit is contained in:
Jacob Heider 2023-10-02 12:39:24 -04:00
parent 7a42577381
commit 7d21407668
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -62,9 +62,10 @@ build:
if: ^2
# 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_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