Giter Club home page Giter Club logo

gdalmanylinux's Introduction

GDAL Python Bindings Via manylinux Wheels

Since the acceptance of PEP 513, Python now supports manylinux wheels for packing up Python code with the c extensions vendorized into the wheel itself.

This repo provides a template for building GDAL's python bindings as manylinux wheels, allowing for a quick install of the GDAL Python bindings without expicitly installing GDAL and its dependencies.

The template was directly derived from the rasterio project, which provides a new (and fantastic) interface to GDAL.

Building the Wheels

The building of the wheels is done via the docker container provided by the Python Packaging Authority as described here.

To build, clone this repo, navigate to its root and run make wheels. The container may take a while to build on first go, but once complete you should have a subdirectory called wheels filled with wheels containing the bindings.

The resulting wheels have the gdal and proj data directories packaged up inside of them, but you can set the appropriate environment viaraibles to use your own data directories.

Using the Wheels

These may be pip installed into your linux environment ad nauseam. For example, from the directory containing the 'wheels' directory, you can run

docker run -v `pwd`:/io -it --rm python:2.7 /bin/bash

to get yourself into a clean python docker container. From inside this container, try

pip install /io/wheels/GDAL-2.4.0-cp27-cp27mu-manylinux1_x86_64.whl

You should experience a quick install of GDAL and Numpy. Try them out!

gdalmanylinux's People

Contributors

youngpm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.