Skip to content

Commit

Permalink
let's give this a try
Browse files Browse the repository at this point in the history
  • Loading branch information
beniwohli committed May 2, 2016
1 parent 50c0569 commit ed4aa03
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,36 @@ language: python

python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
# - "3.2"
# - "3.3"
# - "3.4"
# - "3.5"
# - "pypy"
# - "pypy3"

env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib

matrix:
include:
- sudo: required
python: 3.4
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
script:
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-manylinux1-wheels.sh
- ls wheelhouse/
- sudo: required
python: 3.4
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
PRE_CMD=linux32
script:
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-manylinux1-wheels.sh
- ls wheelhouse/


before_install:
- sudo apt-get install cmake
- pip install cffi
Expand Down
40 changes: 40 additions & 0 deletions travis/build-manylinux1-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash

set -e -x
CURDIR=`pwd`

# Install a system package required by our library
yum -y install git libssh2-devel libffi-devel openssl-devel pkgconfig

# libgit2 needs cmake 2.8, which can be found in EPEL

yum -y install cmake28

git clone --depth=1 -b maint/v0.24 https://github.com/libgit2/libgit2.git
cd libgit2/


mkdir build && cd build
cmake28 .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
cmake28 --build . --target install
export LIBGIT2=$CURDIR/libgit2/_install/
export LD_LIBRARY_PATH=$CURDIR/libgit2/_install/lib

mkdir -p wheelhouse

# Compile wheels
for PYBIN in /opt/python/*/bin; do
${PYBIN}/pip wheel /io/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/pygit*.whl; do
auditwheel repair $whl -w /io/wheelhouse/
done

# Install packages
for PYBIN in /opt/python/*/bin/; do
${PYBIN}/pip install pygit2 --no-index -f /io/wheelhouse
done

chmod 0777 wheelhouse/*.whl

0 comments on commit ed4aa03

Please sign in to comment.