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

    py26-psycopg2  most recent diff


    version 2.0.13

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


      # -*- 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
      The py26-psycopg2 Portfile 60092 2009-11-01 21:25:11Z snc macports.org $

      PortSystem 1.0
      PortGroup python26 1.0

      Name: py26-psycopg2
      Version: 2.0.13
      Category:-append databases
      license GPLv2+
      Maintainers: snc openmaintainer
      Description: A python DBAPI-2.0 ompliant database adapter for postgresql
      Long Description: Psycopg2 is a postgresql database adapter for python. It's fully compliant to pythons DBAPI-2.0. psycopg is designed for heavily multi-threaded applications featuring connection pooling.
      Homepage: http://www.initd.org/software/initd/psycopg/

      Platform: darwin freebsd
      depends_lib-append port:openssl

      distname psycopg2-${version}
      Master Sites: http://initd.org/pub/software/psycopg/

      Checksums: md5 f520260595f4fcf035d26cfd57a75f19 sha1 859725d0c830dc3590cb5666c8465bd29ab167cc rmd160 6099f593ea1f05b78b6f2c3c4106b86cbcab7386

      Patch Files: patch-setup.cfg.diff


      if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
      default_variants +postgresql84
      }

      Variant: postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" {
      depends_lib-append port:postgresql82

      post-patch {
      reinplace s| PG_CONFIG |${prefix}/lib/postgresql82/bin/pg_config|g ${worksrcpath}/setup.cfg
      }
      }

      Variant: postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" {
      depends_lib-append port:postgresql83

      post-patch {
      reinplace s| PG_CONFIG |${prefix}/lib/postgresql83/bin/pg_config|g ${worksrcpath}/setup.cfg
      }
      }

      Variant: postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" {
      depends_lib-append port:postgresql84

      post-patch {
      reinplace s| PG_CONFIG |${prefix}/lib/postgresql84/bin/pg_config|g ${worksrcpath}/setup.cfg
      }
      }

      livecheck.url ${master_sites}
      livecheck.regex psycopg2-(\\d+\\.\\d+(\\.\\d+)?)\\.tar\\.gz

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.