Skip to content

Commit

Permalink
Merge pull request pypa#2 from rmcgibbo/readme
Browse files Browse the repository at this point in the history
Add readme
  • Loading branch information
njsmith committed Feb 1, 2016
2 parents 195e33d + fd4e95b commit cc2e621
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
# python-manylinux-demo
Demo project for building Python wheels for Linux with Travis-CI

[![Build Status](https://travis-ci.org/manylinux/python-manylinux-demo.svg?branch=master)](https://travis-ci.org/manylinux/python-manylinux-demo)
[![Build Status](https://travis-ci.org/manylinux/python-manylinux-demo.svg?branch=master)](https://travis-ci.org/manylinux/python-manylinux-demo)


This is an example of how to use Travis-CI to build
[PEP 513](https://www.python.org/dev/peps/pep-0513/)-compatible manylinux1
wheels for Python. It supports both Python 2 and 3 on 32 and 64 bit linux
architectures.

Because these wheels need to be compiled on CentOS 5, this example uses Docker
running on Travis-CI to compile (you don't need to use docker at all to _use_
these wheels, it's just to compile them). The docker-based build environment
images are:

- quay.io/pypa/manylinux1_x86_64
- quay.io/pypa/manylinux1_i686


This sample project contains a very simple C compile extension module that links
to an external library (ATLAS, a linear algebra library). The build is
configured via the `setup.py` file.

## Continuous integration setup with Travis + Docker

The `.travis.yml` file in this repository sets up the build environment. The
resulting build logs can be found at

https://travis-ci.org/manylinux/python-manylinux-demo

The `.travis.yml` file instructs Travis to run the script
`travis/build-wheels.sh` inside of the 32-bit and 64-bit manylinux1 docker
build environments. This script builds the package using `pip`. But these
wheels link against an external library. So to create self-contained libraries,
the build script runs the wheels through
[`auditwheel`](https://pypi.python.org/pypi/auditwheel).

0 comments on commit cc2e621

Please sign in to comment.