diff --git a/geodiff/CMakeLists.txt b/geodiff/CMakeLists.txt index f59f081d..23d57de5 100644 --- a/geodiff/CMakeLists.txt +++ b/geodiff/CMakeLists.txt @@ -31,6 +31,9 @@ IF(SKBUILD) IF (CMAKE_GENERATOR_PLATFORM STREQUAL "Win32") SET(GEODIFF_NAME "${GEODIFF_NAME}-win32") ENDIF (CMAKE_GENERATOR_PLATFORM STREQUAL "Win32") + IF (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + SET(GEODIFF_NAME "${GEODIFF_NAME}-arm64") + ENDIF (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") ELSE(SKBUILD) SET(GEODIFF_NAME geodiff) ENDIF(SKBUILD) diff --git a/pygeodiff/geodifflib.py b/pygeodiff/geodifflib.py index 761b6068..2e2d9d49 100644 --- a/pygeodiff/geodifflib.py +++ b/pygeodiff/geodifflib.py @@ -190,7 +190,10 @@ def package_libname(self): suffix = ".pyd" elif platform.system() == "Darwin": prefix = "lib" - suffix = ".dylib" + if platform.machine() == "arm64": + suffix = "-arm64.dylib" + else: + suffix = ".dylib" else: prefix = "lib" suffix = ".so" diff --git a/scripts/fetch_dist_for_all_platforms.py b/scripts/fetch_dist_for_all_platforms.py index 3f96ec9e..e9367931 100644 --- a/scripts/fetch_dist_for_all_platforms.py +++ b/scripts/fetch_dist_for_all_platforms.py @@ -26,6 +26,7 @@ plats = ["win32", "win_amd64", "macosx_10_9_x86_64", + "macosx_14_0_arm64", "manylinux_2_24_x86_64" ] @@ -47,6 +48,7 @@ (not os.path.exists(FINALDIR + "/pygeodiff-" + VERSION + "-python.pyd")) or (not os.path.exists(FINALDIR + "/pygeodiff-" + VERSION + "-python-win32.pyd")) or (not os.path.exists(FINALDIR + "/libpygeodiff-" + VERSION + "-python.dylib")) or + (not os.path.exists(FINALDIR + "/libpygeodiff-" + VERSION + "-python-arm64.dylib")) or (not os.path.exists(FINALDIR + "/libpygeodiff-" + VERSION + "-python.so")) ): print ("ERROR")