[114094] trunk/dports/python

Peter Danecek Peter.Danecek at bo.ingv.it
Fri Nov 29 03:40:01 PST 2013


On Nov 29, 2013, at 9:06 , Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Nov 28, 2013, at 18:06, mojca at macports.org wrote:
> 
>> +# $Id$
>> +
>> +PortSystem          1.0
>> +PortGroup           python 1.0
>> +PortGroup           github 1.0
>> +
>> +github.setup        SciTools cartopy 0.9.0 v
>> +
>> +name                py-cartopy
>> +version             0.9.0
>> +categories-append   science gis graphics
>> +platforms           darwin
>> +
>> +maintainers         bo.ingv.it:peter.danecek openmaintainer
>> +
>> +license             LGPL3
> 
> Needs to be “LGPL-3” (or “LGPL-3+” if later versions are allowed).

> 
>> +if {${subport} != ${name}} {
> 
> Remember to use eq and ne for string comparisons instead of == and !=.
> 
Thanks for catching this!
These are mistakes I should now by now. Il provide a patch.

>> +    depends_build-append    port:py${python.version}-setuptools \
>> +                            port:py${python.version}-cython \
>> +                            port:py${python.version}-numpy
>> +
>> +    depends_lib-append      port:proj \
>> +                            port:geos
>> +
>> +    depends_run-append      port:py${python.version}-numpy \
>> +                            port:py${python.version}-scipy \
>> +                            port:py${python.version}-matplotlib \
>> +                            port:py${python.version}-shapely \
>> +                            port:py${python.version}-pyshp
>> +
>> +    # testing only
>> +    depends_run-append      port:py${python.version}-nose \
>> +                            port:py${python.version}-pep8 \
>> +                            port:py${python.version}-mock \
>> +                            port:py${python.version}-pil
>> +}
> 
> How do you mean, “testing only”? If you mean the test phase, as in “sudo port test”, this port doesn’t enable the test phase, and even if it did, runtime dependencies aren’t guaranteed to have been installed by the time the test phase runs.

No testing is not done during build or installation. So these dependencies are strictly not necessary. However, when you would like to test the package (after installation) you would need them. I discussed this on the list, and was advised to install them as well, because the are small.

So I did, but marked this explicitly, should the comment be reworded?

~petr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20131129/fe017450/attachment-0001.p7s>


More information about the macports-dev mailing list