Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions geodiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion pygeodiff/geodifflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions scripts/fetch_dist_for_all_platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
plats = ["win32",
"win_amd64",
"macosx_10_9_x86_64",
"macosx_14_0_arm64",
"manylinux_2_24_x86_64"
]

Expand All @@ -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")
Expand Down
Loading