Py26-pgsql version 2.5.1 - How to Download and Install on Mac OS X
Thursday the 18th of March, 2010

    py26-pgsql  most recent diff


    version 2.5.1

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


      The py26-pgsql Portfile 57814 2009-09-17 04:08:22Z blb macports.org $

      PortSystem 1.0
      PortGroup python26 1.0
      Name: py26-pgsql
      Version: 2.5.1
      Category:-append databases
      Maintainers: blb openmaintainer
      Description: python DB-API 2.0 compliant interface to postgresql
      Long Description: pyPgSQL is a package of two modules that provide a Python DB-API 2.0 compliant interface to PostgreSQL databases. The first module, libpq, exports the PostgreSQL C API to Python. This module is written in C and can be compiled into Python or can be dynamically loaded on demand. The second module, PgSQL, provides the DB-API 2.0 compliant interface and support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc.

      Platform: darwin

      Homepage: http://pypgsql.sourceforge.net/
      Master Sites: sourceforge:pypgsql
      distname pyPgSQL-${version}

      Checksums: md5 82670f6f1652aa4766fdaec2cb43debd sha1 ae286d2b0b0e6896223430887dd244e9eeef705b rmd160 c41bc3d56e09cedc2022a6a80a620ca27dde8ca3

      depends_lib-append port:py26-mx-base

      post-destroot {
      xinstall -m 644 -W ${worksrcpath} Announce ChangeLog README README.html ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath}/examples basic.py demo1a.py demo1b.py demo2a.py demo2b.py ${destroot}${prefix}/share/doc/${name}/examples
      }

      Variant: postgresql83 conflicts postgresql84 description {Use with PostgreSQL 8.3} {
      global build.env destroot.env
      depends_lib-append port:postgresql83
      build.env PATH="${prefix}/lib/postgresql83/bin:$env(PATH)"
      destroot.env ${build.env}
      }

      Variant: postgresql84 conflicts postgresql83 description {Use with PostgreSQL 8.4} {
      global build.env destroot.env
      depends_lib-append port:postgresql84
      build.env PATH="${prefix}/lib/postgresql84/bin:$env(PATH)"
      destroot.env ${build.env}
      }

      # Default to postgresql83 since that was the built-in version previously
      if {![variant_isset postgresql83] && ![variant_isset postgresql84]} {
      default_variants +postgresql83
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.