<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8355687eb677dfc77ec34bfb7fdba91337d34b1d">https://github.com/macports/macports-ports/commit/8355687eb677dfc77ec34bfb7fdba91337d34b1d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8355687e python pg: enable parallel building if supported
</span>8355687e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8355687eb677dfc77ec34bfb7fdba91337d34b1d
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Feb 9 02:34:07 2020 +1100
<span style='display:block; white-space:pre;color:#404040;'> python pg: enable parallel building if supported
</span>---
_resources/port1.0/group/python-1.0.tcl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/python-1.0.tcl b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index f8247cb..ac27041 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,7 @@ use_configure no
</span> # we want the default universal variant added despite not using configure
universal_variant yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default build.target {build[python_get_defaults jobs_arg]}
</span>
post-extract {
# Prevent setuptools' easy_install from downloading dependencies
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -309,6 +309,13 @@ proc python_get_defaults {var} {
</span> return ""
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ jobs_arg {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${python.version} >= 35 && [option use_parallel_build]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return " -j[option build.jobs]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> default {
error "unknown option $var"
}
</pre><pre style='margin:0'>
</pre>