<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
From a quick glance at the output of "port cat mpv" it looks like it
embeds python, and uses it to run the build tool "waf" and for doc
generation.<br>
<br>
set python.versions {27 34}<br>
set python.default_version 27<br>
<br>
...<br>
<br>
# Set ${python.version} to the currently active variant.<br>
foreach ver ${python.versions} {<br>
if {[variant_isset python${ver}]} {<br>
set python.version ${ver}<br>
}<br>
}<br>
<br>
post-patch {<br>
set python_ver_dot [join [split ${python.version} {}] "."]<br>
reinplace -W "${worksrcpath}"
"s|'rst2man'|'rst2man-${python_ver_dot}'|" wscript<br>
}<br>
<br>
<br>
<br>
It seems to have been pretty generically coded, so it may well work
if you add 35 to the list. waf says it only works with 3.4 at
<a class="moz-txt-link-freetext" href="https://github.com/waf-project/waf">https://github.com/waf-project/waf</a> but maybe that's out of date?<br>
<br>
Russell<br>
<br>
<div class="moz-cite-prefix">On 05/05/16 13:53, Mark Bestley wrote:<br>
</div>
<blockquote cite="mid:C6F0235C-1966-4DF4-9AB1-13C23B00A675@me.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div class="BodyFragment"><font size="2"><span
style="font-size:10pt;">
<div class="PlainText">I had decided that I want python3
variants as much as possible and set -python27 +python35
in my variants.conf instead of setting up each variant
manually on the command line
<br>
<br>
However I tried to install mpv (which does not have a
direct python dependency just via youtube-dl) and I got
<br>
<br>
Error: org.macports.patch for port mpv returned: can't
read "python.version": no such variable
<br>
<br>
Why is it looking for python? <br>
<br>
Mark<br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span
style="font-size:10pt;">
<div class="PlainText">_______________________________________________<br>
macports-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a><br>
<a moz-do-not-send="true"
href="https://lists.macosforge.org/mailman/listinfo/macports-users">https://lists.macosforge.org/mailman/listinfo/macports-users</a><br>
</div>
</span></font></div>
</blockquote>
<br>
</body>
</html>