Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Feb 18, 2019
1 parent f17241b commit be6762c
Show file tree
Hide file tree
Showing 7 changed files with 833 additions and 25 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -8,5 +8,4 @@ build
target
.pytest_cache
*.egg-info
Cargo.lock
pyo3
pyo3
10 changes: 4 additions & 6 deletions .travis.yml
@@ -1,24 +1,22 @@
language: python

cache:
directories:
- ~/.rustup
dist: xenial

matrix:
fast_finish: true
include:
- python: "2.7"
- python: "3.5"
- python: "3.6"
- python: "3.7-dev"
- python: "3.7"
- python: "3.8-dev"
allow_failures:
- python: "3.7-dev"
- python: "3.8-dev"

install:
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
- source $HOME/.cargo/env
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
- pip install -e .

Expand Down
4 changes: 2 additions & 2 deletions build-wheels.sh
Expand Up @@ -8,7 +8,7 @@ export PATH="$HOME/rust/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/rust/lib"

# Compile wheels
for PYBIN in /opt/python/cp{27,35,36}*/bin; do
for PYBIN in /opt/python/cp{27,35,36,37}*/bin; do
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
export PYTHON_LIB=$(${PYBIN}/python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
Expand All @@ -23,6 +23,6 @@ for whl in /io/dist/*.whl; do
done

# Install packages and test
for PYBIN in /opt/python/cp{27,35,36}*/bin/; do
for PYBIN in /opt/python/cp{27,35,36,37}*/bin/; do
"${PYBIN}/pip" install hello-rust --no-index -f /io/dist/
done

0 comments on commit be6762c

Please sign in to comment.