mpv and python
Russell Jones
russell.jones at physics.ox.ac.uk
Thu May 5 06:09:24 PDT 2016
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.
set python.versions {27 34}
set python.default_version 27
...
# Set ${python.version} to the currently active variant.
foreach ver ${python.versions} {
if {[variant_isset python${ver}]} {
set python.version ${ver}
}
}
post-patch {
set python_ver_dot [join [split ${python.version} {}] "."]
reinplace -W "${worksrcpath}"
"s|'rst2man'|'rst2man-${python_ver_dot}'|" wscript
}
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
https://github.com/waf-project/waf but maybe that's out of date?
Russell
On 05/05/16 13:53, Mark Bestley wrote:
> 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
>
> However I tried to install mpv (which does not have a direct python
> dependency just via youtube-dl) and I got
>
> Error: org.macports.patch for port mpv returned: can't read
> "python.version": no such variable
>
> Why is it looking for python?
>
> Mark
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20160505/7cc491b0/attachment.html>
More information about the macports-users
mailing list