Py26-numpy version 1.3.0 - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    py26-numpy  most recent diff


    version 1.3.0

      View the most recent changes for the py26-numpy port at: py26-numpy.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for py26-numpy.
      The raw portfile for py26-numpy 1.3.0 is located here:
      http://py26-numpy.darwinports.com/dports/python/py26-numpy/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/py26-numpy


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The py26-numpy Portfile 60561 2009-11-15 21:47:32Z rmsfisher macports.org $

      PortSystem 1.0
      PortGroup python26 1.0

      Name: py26-numpy
      Version: 1.3.0
      Category: python
      Platform: darwin
      Maintainers: mcalhoun openmaintainer
      Description: The core utilities for the scientific library scipy for Python
      Long Description: ${description}

      Homepage: http://numpy.scipy.org/
      Master Sites: sourceforge:numpy
      distname numpy-${version}

      Checksums: md5 3f7773ff0971a5ebb8591536d8ec7bd6 sha1 c04998a1fbf7d990c9a2b99a7b62486012c570ac rmd160 a75155d2014204e16c59857b92356353505c39b9

      Patch Files: patch-g95_link.diff patch-f2py_setup.py.diff patch-npy_endian.h.diff

      depends_lib-append port:fftw-3 port:py26-nose port:atlas port:gcc43

      if {![variant_isset no_gcc43]} {
      configure.compiler macports-gcc-4.3
      }

      build.env-append CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3" ATLAS=${prefix}/lib LAPACK=${prefix}/lib BLAS=${prefix}/lib

      destroot.env-append CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3" ATLAS=${prefix}/lib LAPACK=${prefix}/lib BLAS=${prefix}/lib

      post-patch {
      reinplace "s| MPORTS_PYTHON_LIBRARY |${python.lib}|" ${worksrcpath}/numpy/distutils/fcompiler/g95.py
      reinplace "s| MPORTS_PYTHON |${python.bin}|" ${worksrcpath}/numpy/f2py/setup.py
      }

      post-destroot {
      set branch 2.6
      ln -s ${python.prefix}/bin/f2py ${destroot}${prefix}/bin/f2py-${branch}
      }

      Variant: no_gcc43 description {Do not use the gcc43 compiler (disables fortran code)} {
      depends_lib-delete port:gcc43
      build.env-delete CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"

      destroot.env-delete CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"
      }

      Variant: no_atlas description {Do not use the macports atlas libs} {
      build.env-delete ATLAS=${prefix}/lib LAPACK=${prefix}/lib BLAS=${prefix}/lib

      destroot.env-delete ATLAS=${prefix}/lib LAPACK=${prefix}/lib BLAS=${prefix}/lib
      depends_lib-delete port:atlas
      }
      Variant: universal {
      patchfiles-append patch-numpyconfig.h.in.diff patch-setup.py.diff
      }

      livecheck.type regex
      livecheck.url http://sourceforge.net/projects/numpy/files/
      livecheck.regex "files\/NumPy\/(\\d+(?:\\.\\d+)*)"

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/py26-numpy
      % sudo port install py26-numpy
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching py26-numpy
      ---> Verifying checksum for py26-numpy
      ---> Extracting py26-numpy
      ---> Configuring py26-numpy
      ---> Building py26-numpy with target all
      ---> Staging py26-numpy into destroot
      ---> Installing py26-numpy
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using py26-numpy with these commands:
      %  man py26-numpy
      % apropos py26-numpy
      % which py26-numpy
      % locate py26-numpy

     Where to find more information:

    Darwin Ports



    Lightbox this page.