[MacPorts] #58932: py-tensorflow: reduce build time
MacPorts
noreply at macports.org
Sun May 24 10:40:30 UTC 2020
#58932: py-tensorflow: reduce build time
----------------------------+--------------------------
Reporter: ryandesign | Owner: emcrisostomo
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-tensorflow |
----------------------------+--------------------------
Comment (by ryandesign):
Regarding this line that you added:
{{{
build.jobs [sysctl hw.physicalcpu]
}}}
I would suggest putting that inside the `build { ... }` block. Otherwise
`sysctl hw.physicalcpu` will get run in all sorts of situations where it
is not needed, such as when running `port info` or `port livecheck` or
`portindex`.
Also note that users are able to modify build.jobs in macports.conf or on
the command line. For example a user could run `sudo port build
py38-tensorflow build.jobs=1`. Since the purpose of this line is to reduce
the number of jobs, you might want to verify that you will in fact be
reducing it before changing it:
{{{
build {
set physicalcpus [sysctl hw.physicalcpu]
if {${build.jobs} > ${physicalcpus}} {
build.jobs ${physicalcpus}
}
...
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58932#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list