[104039] trunk/dports/python/py-scikit-image

Aljaž Srebrnič g5pw at macports.org
Wed Mar 13 11:35:52 PDT 2013


I saw the build failure and just found the bug when I saw your commit. Also, nice catch about the py33-scipy. Is there any reason python33 is not supported for scipy?

On 13/mar/2013, at 18:35, stromnov at macports.org wrote:

> Revision
> 104039
> Author
> stromnov at macports.org
> Date
> 2013-03-13 10:35:41 -0700 (Wed, 13 Mar 2013)
> Log Message
> 
> py-scikit-image: add cython support, drop py33 variant (py33-scipy not available for now), bump revision
> Modified Paths
> 
> trunk/dports/python/py-scikit-image/Portfile
> Added Paths
> 
> trunk/dports/python/py-scikit-image/files/
> trunk/dports/python/py-scikit-image/files/patch-skimage__build.py.diff
> Diff
> 
> Modified: trunk/dports/python/py-scikit-image/Portfile (104038 => 104039)
> 
> --- trunk/dports/python/py-scikit-image/Portfile	2013-03-13 16:22:16 UTC (rev 104038)
> +++ trunk/dports/python/py-scikit-image/Portfile	2013-03-13 17:35:41 UTC (rev 104039)
> @@ -1,4 +1,4 @@
> -# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
>  # $Id$
>  
>  PortSystem          1.0
> @@ -7,10 +7,13 @@
>  
>  github.setup        scikit-image scikit-image 0.8.2 v
>  name                py-${name}
> +revision            1
>  categories-append   science
> +platforms           darwin
>  license             BSD
> -platforms           darwin
>  
> +python.versions     26 27 32
> +
>  maintainers         stromnov openmaintainer
>  
>  description         Image processing algorithms for SciPy.
> @@ -24,15 +27,21 @@
>  checksums           rmd160  a759f6a55c8556f9677b7d67d0bad3c69a385c4e \
>                      sha256  158e77a2f1169caf8ee48c0b8f0e0263a3a3e93636a7805dda5457e6006ea42d
>  
> -python.default_version  27
> -python.versions     26 27 32 33
> +if {$subport != $name} {
> +    patchfiles          patch-skimage__build.py.diff
>  
> -if {$subport != $name} {
> +    depends_build-append \
> +                        port:py${python.version}-cython
> +
>      depends_lib-append  port:py${python.version}-distribute \
> -                        port:py${python.version}-cython \
>                          port:py${python.version}-numpy
>  
> -    depends_run         port:py${python.version}-scipy
> +    depends_run-append  port:py${python.version}-scipy
>  
> +    post-patch {
> +        reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/skimage/_build.py
> +        reinplace "s|@python.branch@|${python.branch}|g" ${worksrcpath}/skimage/_build.py
> +    }
> +
>      livecheck.type      none
>  }
> Added: trunk/dports/python/py-scikit-image/files/patch-skimage__build.py.diff (0 => 104039)
> 
> --- trunk/dports/python/py-scikit-image/files/patch-skimage__build.py.diff	                        (rev 0)
> +++ trunk/dports/python/py-scikit-image/files/patch-skimage__build.py.diff	2013-03-13 17:35:41 UTC (rev 104039)
> @@ -0,0 +1,16 @@
> +--- skimage/_build.py.orig	2013-03-07 02:12:35.000000000 +0400
> ++++ skimage/_build.py	2013-03-13 21:18:21.000000000 +0400
> +@@ -41,11 +41,11 @@
> +             c_file = pyxfile[:-4] + '.c'
> + 
> +             # run cython compiler
> +-            cmd = 'cython -o %s %s' % (c_file, pyxfile)
> ++            cmd = '@prefix@/bin/cython- at python.branch@ -o %s %s' % (c_file, pyxfile)
> +             print(cmd)
> + 
> +             try:
> +-                subprocess.call(['cython', '-o', c_file, pyxfile])
> ++                subprocess.call(['@prefix@/bin/cython- at python.branch@', '-o', c_file, pyxfile])
> +             except WindowsError:
> +                 # On Windows cython.exe may be missing if Cython was installed
> +                 # via distutils. Run the cython.py script instead.
> _______________________________________________
> macports-changes mailing list
> macports-changes at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-changes



--
Aljaž Srebrnič a.k.a g5pw
My public key:  http://bit.ly/g5pw_pubkey

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130313/190083f3/attachment.html>


More information about the macports-dev mailing list