Py25-cvxopt version 1.1.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    py25-cvxopt  most recent diff


    version 1.1.1

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


      # -*- 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
      The py25-cvxopt Portfile 56586 2009-08-30 16:33:15Z mnick macports.org $

      PortSystem 1.0
      PortGroup python25 1.0

      Category:-append math
      Name: py25-cvxopt
      Version: 1.1.1
      distname cvxopt-${version}
      Maintainers: mnick
      Platform: darwin
      license GPL

      Description: Python module for convex optimization
      Long Description: CVXOPT is a free software package for convex optimization based on the Python programming language. It can be used with the interactive Python interpreter, on the command line by executing Python scripts, or integrated in other software via Python extension modules. Its main purpose is to make the development of software for convex optimization applications straightforward by building on Python's extensive standard library and on the strengths of Python as a high-level programming language.

      Homepage: http://abel.ee.ucla.edu/cvxopt

      distfiles cvxopt-${version}.tar.gz
      Master Sites: http://abel.ee.ucla.edu/cvxopt/download.php

      Checksums: md5 577e0f2f2288df34310844c67ccd2d77 sha1 391953aea9ce19a3b5c8055237bb26e79798696e rmd160 86f729c4f7cd7eac8253efc9fe6f3ac06c940413


      Variant: atlas description {Use ATLAS as BLAS, LAPACK library} {
      depends_lib-append port:atlas
      }

      Variant: gsl description {Allow linking to gsl} {
      depends_lib-append port:gsl
      }

      Variant: fftw description {Link to fftw library} {
      depends_lib-append port:fftw-3
      }

      Variant: glpk description {Link to glpk library} {
      depends_lib-append port:glpk
      }

      Variant: dsdp description {Link to DSDP library} {
      depends_lib-append port:DSDP
      }

      default_variants +gsl +glpk +fftw +dsdp

      configure {
      if {[variant_isset atlas]} {
      reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" ${worksrcpath}/src/setup.py

      # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist
      if {![file exists ${prefix}/lib/libblas.dylib]} {
      reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" ${worksrcpath}/src/setup.py
      }
      }

      if {[variant_isset gsl]} {
      reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" ${worksrcpath}/src/setup.py
      reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" ${worksrcpath}/src/setup.py
      reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" ${worksrcpath}/src/setup.py
      }
      if {[variant_isset glpk]} {
      reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" ${worksrcpath}/src/setup.py
      reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" ${worksrcpath}/src/setup.py
      reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" ${worksrcpath}/src/setup.py
      }
      if {[variant_isset fftw]} {
      reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" ${worksrcpath}/src/setup.py
      reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" ${worksrcpath}/src/setup.py
      reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" ${worksrcpath}/src/setup.py
      }
      if {[variant_isset dsdp]} {
      reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" ${worksrcpath}/src/setup.py
      reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" ${worksrcpath}/src/setup.py
      reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" ${worksrcpath}/src/setup.py
      }
      }

      build.dir ${worksrcpath}/src

      destroot.dir ${build.dir}

      livecheck.type regex
      livecheck.regex

      Current release

      Version (.*) includes:



    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/py25-cvxopt
      % sudo port install py25-cvxopt
      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 py25-cvxopt
      ---> Verifying checksum for py25-cvxopt
      ---> Extracting py25-cvxopt
      ---> Configuring py25-cvxopt
      ---> Building py25-cvxopt with target all
      ---> Staging py25-cvxopt into destroot
      ---> Installing py25-cvxopt
    - 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 py25-cvxopt with these commands:
      %  man py25-cvxopt
      % apropos py25-cvxopt
      % which py25-cvxopt
      % locate py25-cvxopt

     Where to find more information:

    Darwin Ports



    Lightbox this page.