Download and Install py-contract version 1.1 on Mac OS X
Wednesday the 23rd of July, 2008

    py-contract  most recent diff


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



      # $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-contract
      Version: 1.1
      Category: python
      Platform: darwin freebsd
      Maintainers: nomaintainer
      Description: programming by contract for python
      Long Description: Programming by contract allows a programmer to document a function/class with statements describing behavior. The most famous use/example of contracts is in the language Eiffel (also this module is for python).

      Homepage: http://www.wayforward.net/pycontract
      master_sites ${homepage}
      distname contract-${version}
      checksums rmd160 a0654545eedfbe3374df1fdf2f813839c2d35e7d

      test.run yes
      test.cmd ${python.bin}
      test.target test/testdbc?.py

      post-destroot {
      xinstall -m 644 -W ${worksrcpath} CHANGELOG pep-0316.txt README ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath}/examples circbuf.py sort.py ${destroot}${prefix}/share/doc/${name}/examples
      }

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

     Where to find more information:

    Darwin Ports



    image test