Py-construct version 2.00 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    py-construct  most recent diff


    version 2.00

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


      The py-construct Portfile 50984 2009-05-14 21:08:43Z and.damore macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-construct
      Version: 2.00
      Category: python
      Platform: darwin
      Maintainers: macfreek.nl:software openmaintainer
      Description: python module for parsing and building binary or textual data structures
      Long Description: Construct is a python library for parsing and building of data structures (binary or textual). It is based on the concept of defining data structures in a declarative manner, rather than procedural code: more complex constructs are composed of a hierarchy of simpler ones.

      Homepage: http://construct.wikispaces.com/
      Master Sites: sourceforge:pyconstruct
      # we download the 2.00-py24 "backport" version, since that is backward compatible in
      # Python 2.4 (and it works fine with Python 2.5 too)
      distname construct-${version}-distro-py24b
      Checksums: md5 783c5584a8ea2b7fb7eeada564687aaa
      use_zip yes

      worksrcdir construct

      # nothing to build
      build {}

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/lib/python2.4/site-packages
      file copy ${workpath}/construct ${destroot}${prefix}/lib/python2.4/site-packages
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.