PortGroups / New to Port File Development, Sorry!
Bradley Giesbrecht
pixilla at macports.org
Tue Aug 28 13:56:16 PDT 2012
Apparently you have python.default_version too early in your Portfile, before "name" is declared.
Put the python vars later in your Portfile, after checksums for example:
checksums rmd160 5a07d156e48d2345aad899370a45eb4db91189ae \
sha256 c73a2a705acb17c9d8231cf54d280adae66c4432dcd3c461d8754a61efb1c549
python.version 27
python.link_binaries_suffix
On Aug 28, 2012, at 1:18 PM, Ben Smith wrote:
> When I try to set the default value I get:
>
> Failed to parse file office/torchCL/Portfile: can't set
> "python.default_version": can't read "name": no such variable
>
> --
> Ben Smith
> Founder / CSA
> WBP SYSTEMS
> http://www.wbpsystems.com
>
>
> On Tue, Aug 28, 2012 at 11:59 AM, Joshua Root <jmr at macports.org> wrote:
>> On 2012-8-29 04:49 , Joshua Root wrote:
>>> On 2012-8-29 03:05 , Ben Smith wrote:
>>>> But without doing the link myself, it doesn't appear to create the
>>>> link. I'm assuming that this is a common issue because the manual
>>>> method I want to use is exactly what GoogleCL is using.
>>>
>>> python.link_binaries_suffix had only existed for a couple of months when
>>> googlecl was created, so probably the author was simply unaware of the
>>> feature. The linking code provided by the portgroup works fine for many,
>>> many ports.
>>
>> You do actually need to set python.default_version. But with that change
>> your portfile creates the link fine here.
>>
>> - Josh
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120828/07ed20af/attachment-0001.p7s>
More information about the macports-dev
mailing list