Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary wheels with GDAL included for OS X 10.7+ #238

Closed
sgillies opened this issue Jan 7, 2015 · 12 comments
Closed

Binary wheels with GDAL included for OS X 10.7+ #238

sgillies opened this issue Jan 7, 2015 · 12 comments
Milestone

Comments

@sgillies
Copy link
Member

sgillies commented Jan 7, 2015

Thanks to https://github.com/matthew-brett/delocate I've been able to include GDAL and friends in a binary wheel.

GDAL build details here: https://gist.github.com/sgillies/a8a2fb910a98a8566d0a. My wheel building script is in the "delocating" branch of this repo.

The preview wheel is here on Dropbox: https://www.dropbox.com/sh/1ewgozkom9a8dmp/AABa3nQL40wtVkJiPBnrB4Uya?dl=0

Does anybody have a Mac 10.7+ with no FOSS4G software on it that they'd be willing to try the following?

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

The following would make a good smoke test:

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

The result should be

[-11688546.533293728, 4865942.279503176]

The wheel requires libc++ (therefore 10.7+) so its platform tag is a slightly misleading.

@sgillies sgillies added this to the 0.17 milestone Jan 7, 2015
@sgillies
Copy link
Member Author

sgillies commented Jan 7, 2015

I'm soliciting pre release testing with instructions at https://gist.github.com/sgillies/508e4a5eb8154ed4afa0 and have invited testers to report their results in comments.

@twelch
Copy link

twelch commented Jan 7, 2015

Thumbs up - OSX 10.9.5, Python 2.7.5 (system)

@sgillies
Copy link
Member Author

sgillies commented Jan 7, 2015

@guziy can you check out my comment at https://gist.github.com/sgillies/508e4a5eb8154ed4afa0#comment-1367850 and try a new wheel?

@sgillies
Copy link
Member Author

sgillies commented Jan 7, 2015

@nhv can you try a new wheel I linked in https://gist.github.com/sgillies/508e4a5eb8154ed4afa0#comment-1367864?

@sgillies
Copy link
Member Author

sgillies commented Jan 7, 2015

@jhvanderven it seems like you have a recent pip, version>=6.0, yes?

@guziy
Copy link

guziy commented Jan 7, 2015

This worked for me too.

Python 2.7.8
Yosemite 10.10.1

Cheers

2015-01-07 15:46 GMT-05:00 Sean Gillies notifications@github.com:

@guziy https://github.com/guziy can you check out my comment at
https://gist.github.com/sgillies/508e4a5eb8154ed4afa0#comment-1367850 and
try a new wheel?


Reply to this email directly or view it on GitHub
#238 (comment).

Sasha

@sgillies sgillies closed this as completed Jan 8, 2015
@jhvanderven
Copy link

6.0.6

From: Sean Gillies [mailto:notifications@github.com]
Sent: 07 January 2015 21:48
To: mapbox/rasterio
Cc: jhvanderven
Subject: Re: [rasterio] Binary wheels with GDAL included for OS X 10.7+ (#238)

@jhvanderven https://github.com/jhvanderven it seems like you have a recent pip, version>=6.0, yes?


Reply to this email directly or view it on GitHub #238 (comment) . https://github.com/notifications/beacon/ACUJTmeVePollKGycA1DThQHz-76O3o6ks5nfZMIgaJpZM4DPJSF.gif

Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com http://www.avg.com
Versie: 2015.0.5577 / Virusdatabase: 4257/8887 - datum van uitgifte: 01/07/15

@kapadia
Copy link
Contributor

kapadia commented Mar 27, 2015

@sgillies I'd like to use Rasterio's binary wheels in a package that's dependent on Rasterio. Do you know how to specify wheels in a setup.py script? This would be conditional on OSX.

@sgillies
Copy link
Member Author

@kapadia pip (version 6) prefers wheels, so on OS X you'll automatically get one of the binary wheels from PyPI if they match your platform (Python version and processor) unless you use the --no-use-wheel option. If pip install rasterio gets you the sdist, let me know and I'll get to the bottom of it.

@kapadia
Copy link
Contributor

kapadia commented Mar 27, 2015

Hrm. It looks like pip install rasterio still compiled the cython code. Here's the log file:

https://gist.github.com/kapadia/947543bfe4677dd9e7fb

I'm using anaconda (as usual), and upgrading pip to 6.x.x. Any thoughts on why it doesn't use wheels in this case? I'm on Yosemite.

@sgillies
Copy link
Member Author

Ah, I think it's because the Ananconda platform name isn't compatible with the tags in the wheel filename.

Python 2.7.8 |Continuum Analytics, Inc.| (default, Aug 21 2014, 15:21:46)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
>>> import distutils.util
>>> distutils.util.get_platform()
'macosx-10.5-x86_64'

I expect it's the same on yours.

The wheels should be compatible with your Python. Can you try copying the py27 wheel to your computer, rename it to

rasterio-0.19.0-cp27-none-$TAG.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

where $TAG is your distutils.util.get_platform() with all dashes and dot converted to underscores (like macosx_10_5_x86_64), and then see if you can install that local file?

@kapadia
Copy link
Contributor

kapadia commented Mar 27, 2015

Ugh ... another Anaconda issue.

Sure, I can copy the wheel, but I don't know where to copy it from ...

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

No branches or pull requests

5 participants