[MacPorts] #68908: py-numpy: pep517 backend broken: ERROR: Unknown compiler(s): [['cython'], ['cython3']]
MacPorts
noreply at macports.org
Sun Dec 17 05:55:40 UTC 2023
#68908: py-numpy: pep517 backend broken: ERROR: Unknown compiler(s): [['cython'],
['cython3']]
-------------------------+-------------------------------------------------
Reporter: | Owner: michaelld
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: tiger, leopard, snowleopard,
Port: | powerpc
py311-numpy |
-------------------------+-------------------------------------------------
Comment (by barracuda156):
On a side note, here is why pep517 thinks this is a cross-build:
```
if sysconfig.get_platform().startswith('macosx-'):
archflags = os.environ.get('ARCHFLAGS', '').strip()
if archflags:
arch, *other = filter(None, (x.strip() for x in
archflags.split('-arch')))
if other:
raise ConfigError(f'Multi-architecture builds are not
supported but $ARCHFLAGS={archflags!r}')
macver, _, nativearch = platform.mac_ver()
if arch != nativearch:
x = os.environ.setdefault('_PYTHON_HOST_PLATFORM',
f'macosx-{macver}-{arch}')
if not x.endswith(arch):
raise ConfigError(f'$ARCHFLAGS={archflags!r} and
$_PYTHON_HOST_PLATFORM={x!r} do not agree')
family = 'aarch64' if arch == 'arm64' else arch
cross_file_data = textwrap.dedent(f'''
[binaries]
c = ['cc', '-arch', {arch!r}]
cpp = ['c++', '-arch', {arch!r}]
[host_machine]
system = 'darwin'
cpu = {arch!r}
cpu_family = {family!r}
endian = 'little'
''')
self._meson_cross_file.write_text(cross_file_data)
self._meson_args['setup'].extend(('--cross-file',
os.fspath(self._meson_cross_file)))
```
But python has `PowerPC`, which is not the arch name:
```
macmini:macports-ports svacchanda$ /opt/local/bin/python3.11 -c 'import
platform; print(platform.mac_ver())'
('10.6.8', ('', '', ''), 'PowerPC')
```
--
Ticket URL: <https://trac.macports.org/ticket/68908#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list