<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You may also be interested in the pypi2port contrib. I've not
started using it much yet, but I'm planning to at some point.<br>
<br>
sudo port install py27-progressbar<br>
svn co
<a class="moz-txt-link-freetext" href="https://svn.macports.org/repository/macports/contrib/pypi2port/">https://svn.macports.org/repository/macports/contrib/pypi2port/</a><br>
<br>
Russell<br>
<br>
<div class="moz-cite-prefix">On 25/09/15 13:03, Tiago Freitas
Pereira wrote:<br>
</div>
<blockquote
cite="mid:CALaPfORU7PBfO=Z5Djhw0hoqgnMz-ZXOo_PYDxhX0YFVyPPG=g@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">Ah, I got it :-)
<div><br>
</div>
<div>Thank you very much!!</div>
<div>Have a good weekend<br>
</div>
<div><br>
</div>
<div>Best regards</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Sep 25, 2015 at 1:22 PM, Joshua
Root <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jmr@macports.org" target="_blank">jmr@macports.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On 2015-9-25 20:09 , Tiago Freitas Pereira wrote:<br>
> Hi,<br>
><br>
> I'm developing a port file for a python package that
I have here<br>
> (<a moz-do-not-send="true"
href="https://github.com/bioidiap/bob.blitz"
rel="noreferrer" target="_blank">https://github.com/bioidiap/bob.blitz</a>),
but I cannot read the variable<br>
> python.version as mentioned in the documentation<br>
> (<a moz-do-not-send="true"
href="https://guide.macports.org/#reference.portgroup.python.variables"
rel="noreferrer" target="_blank">https://guide.macports.org/#reference.portgroup.python.variables</a>).<br>
><br>
> When I try to read this variable I get the following
message:<br>
><br>
> {{{<br>
> Failed to parse file science/py-bob.blitz/Portfile:
can't read<br>
> "python.version": no such variable<br>
> }}}<br>
><br>
> I have checked a couple of python ports such as
py-docutils<br>
> (<a moz-do-not-send="true"
href="https://trac.macports.org/browser/trunk/dports/python/py-docutils/Portfile"
rel="noreferrer" target="_blank">https://trac.macports.org/browser/trunk/dports/python/py-docutils/Portfile</a>)<br>
> or py-scikit-image<br>
> (<a moz-do-not-send="true"
href="https://trac.macports.org/browser/trunk/dports/python/py-scikit-image/Portfile"
rel="noreferrer" target="_blank">https://trac.macports.org/browser/trunk/dports/python/py-scikit-image/Portfile</a>)<br>
> and I'm doing basically the same thing that they do
and I can't figure<br>
> out what is wrong.<br>
<br>
</span>Those other ports add their dependencies inside a 'if
{$subport ne<br>
$name}' statement. That's what you'll need to do too,
because<br>
python.version is undefined when you're not in one of the<br>
version-specific subports.<br>
<br>
- Josh<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Tiago</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
macports-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:macports-dev@lists.macosforge.org">macports-dev@lists.macosforge.org</a>
<a class="moz-txt-link-freetext" href="https://lists.macosforge.org/mailman/listinfo/macports-dev">https://lists.macosforge.org/mailman/listinfo/macports-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>