Open
Description
Due to a bug:
numpy/numpy#17987
It is not possible to build numpy on intel on version lower than 1.20.
I propose dropping arm requirement for darwin and let 1.21 for both ... intel and m1.
creating build
creating build/src.macosx-13-x86_64-3.8
creating build/src.macosx-13-x86_64-3.8/numpy
creating build/src.macosx-13-x86_64-3.8/numpy/distutils
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/setup.py", line 443, in <module>
setup_package()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/setup.py", line 435, in setup_package
setup(**metadata)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/core.py", line 171, in setup
return old_setup(**new_attr)
File "/private/tmp/workspace/workspace/ment_arch_package-builder_master/python38/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/install.py", line 62, in run
r = self.setuptools_run()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/install.py", line 36, in setuptools_run
return distutils_install.run(self)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/build_src.py", line 142, in run
self.build_sources()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/build_src.py", line 153, in build_sources
self.build_library_sources(*libname_info)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/build_src.py", line 286, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/build_src.py", line 369, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 667, in get_mathlib_info
st = config_cmd.try_link('int main(void) { return 0;}')
File "/usr/local/Cellar/[email protected]/3.8.17_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/config.py", line 241, in try_link
self._check_compiler()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/command/config.py", line 82, in _check_compiler
self.fcompiler = new_fcompiler(compiler=self.fcompiler,
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
compiler = get_default_fcompiler(plat, requiref90=requiref90,
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
compiler_type = _find_existing_fcompiler(matching_compiler_types,
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
c.customize(dist)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/__init__.py", line 530, in customize
linker_so_flags = self.flag_vars.linker_so
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
return self._get_var(name, conf_desc)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
var = self._hook_handler(name, hook)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
return hook()
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
flags = GnuFCompiler.get_flags_linker_so(self)
File "/private/var/folders/7_/f4wxph953b18c_63q9qxlw5r0000gp/T/pip-install-smotc_bu/numpy_75a2c57acb7d4baeb98d20a46a455e95/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
File "/usr/local/bin/../Cellar/[email protected]/3.8.17_1/bin/../Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 680, in __setitem__
value = self.encodevalue(value)
File "/usr/local/bin/../Cellar/[email protected]/3.8.17_1/bin/../Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 750, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not int
[end of output]
Current numpy for mac intel
Collecting numpy==1.17.3
Using cached https://nxsbts.bitstamp.net/repository/pypi-vetting/packages/numpy/1.17.3/numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Metadata
Metadata
Assignees
Labels
No labels