Skip to content

Instantly share code, notes, and snippets.

@alexbw
Created September 1, 2011 02:03
Show Gist options
  • Select an option

  • Save alexbw/1185247 to your computer and use it in GitHub Desktop.

Select an option

Save alexbw/1185247 to your computer and use it in GitHub Desktop.

Revisions

  1. alexbw revised this gist Nov 27, 2011. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,9 @@ sudo port install py26-ipython
    sudo port select --set ipython ipython26
    sudo port install opencv +python26

    sudo port install py26-gtk
    sudo port install py26-matplotlib +cairo+gtk2

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install python
    sudo easy_install matplotlib
  2. alexbw revised this gist Oct 30, 2011. 1 changed file with 0 additions and 57 deletions.
    57 changes: 0 additions & 57 deletions Python Install with Macports
    Original file line number Diff line number Diff line change
    @@ -1,57 +0,0 @@
    # Install Macports

    # We'll install a relatively high-level package first, with a lot of dependencies,
    # so that we pick up everything along the way

    # Chaco is an enthought plotting package that'll
    sudo port install py26-chaco
    sudo port select python python26

    sudo port install py26-ipython
    sudo port select --set ipython ipython26
    sudo port install opencv +python26
    sudo port install py26-game

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install ipython
    sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traits
    sudo easy_install SimpleCV

    # Kinect
    # -----
    sudo port install git-core
    sudo port install libtool
    sudo port install libusb-devel
    cd ~/Downloads
    git clone https://github.com/OpenKinect/libfreenect.git
    git clone http://git.libusb.org/libusb.git
    cd libusb
    ./autogen.sh
    patch -p1 < ../libfreenect/platform/osx/libusb-osx-kinect.diff
    ./configure LDFLAGS='-framework IOKit -framework CoreFoundation'
    make
    sudo make install
    cd ../libfreenect
    mkdir build
    cd build
    ccmake ..
    # Hit "C", then hit "G"
    cmake ..
    make
    sudo make install
    # Python time
    cd ../wrappers/python
    open setup.py
    # Add '-I', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include', after line 45
    python setup.py install


    # TODO:

    # CouchDB
    # -----
    sudo port install couchdb py26-couchdb py26-couchdbkit
  3. alexbw revised this gist Sep 16, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Python Install with Macports
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ sudo port select python python26
    sudo port install py26-ipython
    sudo port select --set ipython ipython26
    sudo port install opencv +python26
    sudo port install py26-game

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install ipython
  4. alexbw revised this gist Sep 16, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Python Install with Macports
    Original file line number Diff line number Diff line change
    @@ -17,8 +17,8 @@ sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traitsui

    sudo easy_install --upgrade traits
    sudo easy_install SimpleCV

    # Kinect
    # -----
  5. alexbw revised this gist Sep 10, 2011. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -12,8 +12,10 @@ sudo port select --set ipython ipython26
    sudo port install opencv +python26

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install ipython
    sudo easy_install python
    sudo easy_install matplotlib
    sudo port install py26-game
    sudo easy_install PIL
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
  6. alexbw revised this gist Sep 7, 2011. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,9 @@ sudo easy_install --upgrade traitsui

    # Kinect
    # -----
    sudo port install git-core libtool libusb-devel cmake
    sudo port install git-core
    sudo port install libtool
    sudo port install libusb-devel
    cd ~/Downloads
    git clone https://github.com/OpenKinect/libfreenect.git
    git clone http://git.libusb.org/libusb.git
  7. alexbw revised this gist Sep 7, 2011. No changes.
  8. alexbw revised this gist Sep 6, 2011. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -17,18 +17,12 @@ sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traits

    sudo easy_install --upgrade traitsui

    # Misc
    # -----
    sudo easy_install argparse

    # Kinect
    # -----
    sudo port install git-core
    sudo port install libtool
    sudo port install libusb-devel
    sudo port install git-core libtool libusb-devel cmake
    cd ~/Downloads
    git clone https://github.com/OpenKinect/libfreenect.git
    git clone http://git.libusb.org/libusb.git
  9. alexbw revised this gist Sep 5, 2011. 1 changed file with 3 additions and 8 deletions.
    11 changes: 3 additions & 8 deletions PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -17,17 +17,12 @@ sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traitsui
    sudo easy_install --upgrade traits


    # HDF5
    # Misc
    # -----
    sudo port install hdf5-18
    sudo easy_install numexpr
    sudo port install zlib
    sudo port install bzip2
    sudo easy_install tables

    sudo easy_install argparse

    # Kinect
    # -----
  10. alexbw revised this gist Sep 5, 2011. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -17,10 +17,17 @@ sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade traitsui


    # HDF5
    # -----
    sudo port install hdf5-18
    sudo easy_install numexpr
    sudo port install zlib
    sudo port install bzip2
    sudo easy_install tables

    sudo easy_install pygame
    sudo easy_install simplecv

    # Kinect
    # -----
  11. alexbw revised this gist Sep 2, 2011. 1 changed file with 58 additions and 0 deletions.
    58 changes: 58 additions & 0 deletions PythonInstallwithMacports
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,58 @@
    # Install Macports

    # We'll install a relatively high-level package first, with a lot of dependencies,
    # so that we pick up everything along the way

    # Chaco is an enthought plotting package that'll
    sudo port install py26-chaco
    sudo port select python python26

    sudo port install py26-ipython
    sudo port select --set ipython ipython26
    sudo port install opencv +python26

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install ipython
    sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traits

    sudo easy_install pygame
    sudo easy_install simplecv

    # Kinect
    # -----
    sudo port install git-core
    sudo port install libtool
    sudo port install libusb-devel
    cd ~/Downloads
    git clone https://github.com/OpenKinect/libfreenect.git
    git clone http://git.libusb.org/libusb.git
    cd libusb
    ./autogen.sh
    patch -p1 < ../libfreenect/platform/osx/libusb-osx-kinect.diff
    ./configure LDFLAGS='-framework IOKit -framework CoreFoundation'
    make
    sudo make install
    cd ../libfreenect
    mkdir build
    cd build
    ccmake ..
    # Hit "C", then hit "G"
    cmake ..
    make
    sudo make install
    # Python time
    cd ../wrappers/python
    open setup.py
    # Add '-I', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include', after line 45
    python setup.py install


    # TODO:

    # CouchDB
    # -----
    sudo port install couchdb py26-couchdb py26-couchdbkit
  12. alexbw created this gist Sep 1, 2011.
    56 changes: 56 additions & 0 deletions Python Install with Macports
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    # Install Macports

    # We'll install a relatively high-level package first, with a lot of dependencies,
    # so that we pick up everything along the way

    # Chaco is an enthought plotting package that'll
    sudo port install py26-chaco
    sudo port select python python26

    sudo port install py26-ipython
    sudo port select --set ipython ipython26
    sudo port install opencv +python26

    sudo ln -s easy_install-2.6 /opt/local/bin/easy_install
    sudo easy_install ipython
    sudo easy_install matplotlib
    sudo easy_install SimpleCV
    sudo easy_install --upgrade traits
    sudo easy_install --upgrade enable
    sudo easy_install --upgrade traitsui


    # Kinect
    # -----
    sudo port install git-core
    sudo port install libtool
    sudo port install libusb-devel
    cd ~/Downloads
    git clone https://github.com/OpenKinect/libfreenect.git
    git clone http://git.libusb.org/libusb.git
    cd libusb
    ./autogen.sh
    patch -p1 < ../libfreenect/platform/osx/libusb-osx-kinect.diff
    ./configure LDFLAGS='-framework IOKit -framework CoreFoundation'
    make
    sudo make install
    cd ../libfreenect
    mkdir build
    cd build
    ccmake ..
    # Hit "C", then hit "G"
    cmake ..
    make
    sudo make install
    # Python time
    cd ../wrappers/python
    open setup.py
    # Add '-I', '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include', after line 45
    python setup.py install


    # TODO:

    # CouchDB
    # -----
    sudo port install couchdb py26-couchdb py26-couchdbkit