Skip to content

Instantly share code, notes, and snippets.

@sgillies
Last active August 29, 2015 14:13
Show Gist options
  • Save sgillies/508e4a5eb8154ed4afa0 to your computer and use it in GitHub Desktop.
Save sgillies/508e4a5eb8154ed4afa0 to your computer and use it in GitHub Desktop.
Pre-release testing of Rasterio binaries

Rasterio binaries for OS X

Requirements

OS X 10.7+ Python 2.7 (2.7.9 would be best because it includes pip, a package installer)

Get pip if you don't have it

  1. Download https://bootstrap.pypa.io/get-pip.py
  2. Install pip (as admin)
python get-pip.py

Create a virtualenv

So you don't muck up your system python. See http://docs.python-guide.org/en/latest/dev/virtualenvs/.

pip install virtualenv
virtualenv riotest
source riotest/bin/activate

Install Rasterio

Into the virtualenv you activated above.

pip install https://www.dropbox.com/s/x9iksjv4qb2b6ab/rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl?dl=1

Test

Here are a couple quick tests.

rio --version

should print "0.16"

rio transform --src_crs EPSG:4326 --dst_crs EPSG:3857 "[-105, 40]"

should print "[-11688546.533293728, 4865942.279503176]"

Finish

deactivate

closes up the virtualenv.

Reporting

If it works, leave a comment with your OS X version, Python version (and whether system, homebrew, macports), and a thumbs up below. If it doesn't work, can you kindly paste the traceback or error along with OS and Python details?

Thank you!

@HyperJohnGraham
Copy link

OSX 10.10.1 (14B25)
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
Worked perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment