File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,18 @@ def build_extension(self, ext):
102102 long_description = f .read ()
103103
104104# read version
105- f = open ("version" , "r" )
105+ f = open ("version.txt " , "r" )
106106pbd_version = f .readline ().strip ()
107107f .close ()
108108
109+ max_numpy_version = "1.19.3"
110+ install_requires = [f"numpy<={ max_numpy_version } " ]
111+ if platform .machine () == "arm64" :
112+ if platform .system () == "Darwin" :
113+ install_requires = ["numpy>=1.21.0" ]
114+ else :
115+ install_requires = [f"numpy>=1.19.0,<={ max_numpy_version } " ]
116+
109117setup (
110118 name = name ,
111119 version = pbd_version ,
@@ -121,5 +129,5 @@ def build_extension(self, ext):
121129 cmdclass = dict (build_ext = CMakeBuild ),
122130 packages = find_packages (),
123131 zip_safe = False ,
124- install_requires = [ 'numpy<=1.19.3' ]
132+ install_requires = install_requires
125133)
You can’t perform that action at this time.
0 commit comments