From aa4af01bbea3f81713263f412af174564c95bc89 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 31 Oct 2024 22:22:56 +0100 Subject: [PATCH] Move towards macos --- meson_scripts/copy_tools.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/meson_scripts/copy_tools.py b/meson_scripts/copy_tools.py index 442bc48d..028089aa 100644 --- a/meson_scripts/copy_tools.py +++ b/meson_scripts/copy_tools.py @@ -11,7 +11,7 @@ def strip_platform(text): text = text[1:] - return text.lstrip("linux64").lstrip("windows64").lstrip("windows32").lstrip("linux32") + return text.lstrip("linux64").lstrip("windows64").lstrip("windows32").lstrip("linux32").lstrip("darwin32") def run(platform): @@ -21,7 +21,8 @@ def run(platform): list_dll = glob.glob("**/*.dll", recursive=True) elif "linux" in platform: list_dll = glob.glob("**/*.so", recursive=True) - + elif "darwin" in platform: + list_dll = glob.glob("**/*.dylib", recursive=True) for entry in list_dll: if "cpython" in entry: continue @@ -79,6 +80,11 @@ def copy_main(platform): f"build/final/{platform}/{config_data['python_ver']}-{platform}/python/bin/main.so") copy(f"build/{platform}/pythonscript.so", f"build/final/{platform}/{config_data['python_ver']}-{platform}/python/bin/pythonscript.so") + elif "darwin" in platform: + copy(f"build/{platform}/main.dylib", + f"build/final/{platform}/{config_data['python_ver']}-{platform}/python/bin/main.so") + copy(f"build/{platform}/pythonscript.dylib", + f"build/final/{platform}/{config_data['python_ver']}-{platform}/python/bin/pythonscript.so") def copy_tests(platform):