Pypy version 1.1.0 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    version 1.1.0

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


      # -*- 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 pypy Portfile 57648 2009-09-14 14:04:18Z jmr macports.org $

      PortSystem 1.0

      Name: pypy
      Version: 1.1.0
      set branch [join [lrange [split ${version} .] 0 1] .]
      Category: lang python devel
      license MIT/PSF
      Maintainers: jmr openmaintainer
      Description: implementation of Python in Python
      Long Description: PyPy is both a reimplementation of Python in Python, and a framework for implementing interpreters and virtual machines for programming languages, especially dynamic languages.

      Platform: darwin
      #license MIT

      Homepage: http://codespeak.net/pypy/
      Master Sites: http://codespeak.net/download/pypy/
      use_bzip2 yes

      Checksums: md5 562779596ca08e5405dd3c48df194744 sha1 cf62fc6d5dacca20f540f84431e5adee872b98d4 rmd160 c4715a620334251fdd98c6015805057813773c30

      depends_lib port:bzip2 port:libffi port:ncurses port:python26 port:zlib

      Patch Files: setpgrp.diff
      patch.args -p2

      use_configure no

      build.dir ${worksrcpath}/pypy/translator/goal
      build.cmd ${prefix}/bin/python2.6
      build.args --batch --cc=${configure.cc} --opt=3
      build.target translate.py
      build.post_args targetpypystandalone.py

      if {[info exists configure.cc_archflags]} {
      build.args-append --cflags=\"${configure.cc_archflags} ${configure.cppflags} ${configure.ldflags}\"
      } else {
      build.args-append --cflags=\"${configure.cppflags} ${configure.ldflags}\"
      }

      destroot {
      xinstall -d ${destroot}${prefix}/share/${name}-${branch}/pypy
      copy ${worksrcpath}/pypy/lib ${destroot}${prefix}/share/${name}-${branch}/pypy
      xinstall -d ${destroot}${prefix}/share/${name}-${branch}/lib-python
      copy ${worksrcpath}/lib-python/2.5.2 ${worksrcpath}/lib-python/modified-2.5.2 ${destroot}${prefix}/share/${name}-${branch}/lib-python
      xinstall -m 755 ${build.dir}/pypy-c ${destroot}${prefix}/bin
      }

      Variant: opt1 description {use optimization level 1 for faster build} {
      depends_lib-append port:boehmgc
      build.args-delete --opt=3
      build.args-append --opt=1
      }
      #variant jit description {enable just-in-time compiler} {
      # build.args-append --jit
      #}

      livecheck.type regex
      livecheck.url http://codespeak.net/pypy/dist/pypy/doc/download.html
      livecheck.regex pypy-(\[0-9.\]+)${extract.suffix}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.