Skip to content

Commit

Permalink
Move towards macos
Browse files Browse the repository at this point in the history
  • Loading branch information
niklas2902 committed Oct 31, 2024
1 parent 5121177 commit aa4af01
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions meson_scripts/copy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit aa4af01

Please sign in to comment.