Py26-scientific version 2.8 - How to Download and Install on Mac OS X
Monday the 22nd of March, 2010

    py26-scientific  most recent diff


    version 2.8

      View the most recent changes for the py26-scientific port at: py26-scientific.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for py26-scientific.
      The raw portfile for py26-scientific 2.8 is located here:
      http://py26-scientific.darwinports.com/dports/python/py26-scientific/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-scientific


      # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The py26-scientific Portfile 59361 2009-10-14 00:05:35Z adfernandes macports.org $

      PortSystem 1.0
      PortGroup python26 1.0

      Name: py26-scientific
      Version: 2.8
      Revision: 2
      Category: python science
      Platform: darwin
      Maintainers: adfernandes openmaintainer
      Description: Scientific Python

      Long Description: ScientificPython is a collection of Python modules that are useful for scientific computing.

      Homepage: http://dirac.cnrs-orleans.fr/ScientificPython/
      Master Sites: http://sourcesup.cru.fr/frs/download.php/2309/
      distname ScientificPython-${version}

      Checksums: md5 82d8592635d6ae8608b3073dacf9e694 sha1 c0847eac6359d70b0e4687c5c65af49b3986e55b rmd160 0501829586253fe3986458529c436b6d93e6667f

      depends_lib port:netcdf port:py26-numpy

      build.env CPPFLAGS="-I${python.include} -I${worksrcpath}/Include" NETCDF_PREFIX=${prefix}

      post-destroot {
      foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
      ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
      }
      }

      platform macosx {
      post-extract {
      copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
      }
      }

      platform puredarwin {
      post-extract {
      copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
      }
      }

      Variant: mpi description {Enable lammpi support} {
      depends_lib-append port:lammpi
      patchfiles-append patch-Src-MPI-compile.py.diff
      post-build {
      reinplace "s| prefix |${prefix}|g" ${worksrcpath}/Src/MPI/compile.py
      reinplace "s| worksrcpath |${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py
      system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py"
      }
      post-destroot {
      xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin
      ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython${python.branch}
      }
      }

      livecheck.type regex
      livecheck.url http://sourcesup.cru.fr/projects/scientific-py/
      livecheck.regex {
    (\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-scientific
      % sudo port install py26-scientific
      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-scientific
      ---> Verifying checksum for py26-scientific
      ---> Extracting py26-scientific
      ---> Configuring py26-scientific
      ---> Building py26-scientific with target all
      ---> Staging py26-scientific into destroot
      ---> Installing py26-scientific
    - 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-scientific with these commands:
      %  man py26-scientific
      % apropos py26-scientific
      % which py26-scientific
      % locate py26-scientific

     Where to find more information:

    Darwin Ports



    Lightbox this page.