[MacPorts] #63776: py39-tensorflow-metal, py39-tensorflow-macos not found on M1 device
MacPorts
noreply at macports.org
Wed Nov 3 00:14:08 UTC 2021
#63776: py39-tensorflow-metal, py39-tensorflow-macos not found on M1 device
-------------------------------------------------+-------------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: py39-tensorflow-metal, py39 |
-tensorflow-macos |
-------------------------------------------------+-------------------------
Comment (by ryandesign):
The portfile says:
{{{
if {${build_arch} eq {arm64}} {
python.versions 38 39
} elseif {${build_arch} eq {x86_64}} {
python.versions 38
}
}}}
Setting `python.versions` causes the subports to be created.
You should not vary which ports or subports exist based on any criteria. A
port should always exist or it should always not exist.
There are separate portindexes for each Darwin OS version and OS arch, so
some variation in port existence or attributes is acceptable. However,
varying based on `$build_arch` is not supported. The server that generates
the portindexes is x86_64, so any port variations that check `$build_arch`
will be indexed for an x86_64 machine.
Varying based on `${os.arch}` is supported, for example:
{{{
platform arm {
python.versions 38 39
}
platform i386 {
python.versions 38
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63776#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list