From 7d214076688a679739b668d287de6537052d9a9a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 2 Oct 2023 12:39:24 -0400 Subject: [PATCH] fix(python^3.12) --- projects/python.org/package.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/projects/python.org/package.yml b/projects/python.org/package.yml index 240c6386..513de088 100644 --- a/projects/python.org/package.yml +++ b/projects/python.org/package.yml @@ -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