File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ IF(SKBUILD)
3131 IF (CMAKE_GENERATOR_PLATFORM STREQUAL "Win32" )
3232 SET (GEODIFF_NAME "${GEODIFF_NAME} -win32" )
3333 ENDIF (CMAKE_GENERATOR_PLATFORM STREQUAL "Win32" )
34+ IF (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" )
35+ SET (GEODIFF_NAME "${GEODIFF_NAME} -arm64" )
36+ ENDIF (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" )
3437ELSE (SKBUILD )
3538 SET (GEODIFF_NAME geodiff)
3639ENDIF (SKBUILD )
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ def package_libname(self):
190190 suffix = ".pyd"
191191 elif platform .system () == "Darwin" :
192192 prefix = "lib"
193- suffix = ".dylib"
193+ if platform .machine () == "arm64" :
194+ suffix = "-arm64.dylib"
195+ else :
196+ suffix = ".dylib"
194197 else :
195198 prefix = "lib"
196199 suffix = ".so"
Original file line number Diff line number Diff line change 2626plats = ["win32" ,
2727 "win_amd64" ,
2828 "macosx_10_9_x86_64" ,
29+ "macosx_14_0_arm64" ,
2930 "manylinux_2_24_x86_64"
3031 ]
3132
4748 (not os .path .exists (FINALDIR + "/pygeodiff-" + VERSION + "-python.pyd" )) or
4849 (not os .path .exists (FINALDIR + "/pygeodiff-" + VERSION + "-python-win32.pyd" )) or
4950 (not os .path .exists (FINALDIR + "/libpygeodiff-" + VERSION + "-python.dylib" )) or
51+ (not os .path .exists (FINALDIR + "/libpygeodiff-" + VERSION + "-python-arm64.dylib" )) or
5052 (not os .path .exists (FINALDIR + "/libpygeodiff-" + VERSION + "-python.so" ))
5153 ):
5254 print ("ERROR" )
You can’t perform that action at this time.
0 commit comments