Skip to content

Commit

Permalink
Cythonized files now deleted after setup. (closes #667)
Browse files Browse the repository at this point in the history
Default behavior now depends on release or dev status. When in dev mode
default is to use Cython and delete cythonized files. When in release
mode default is to skip Cython but keep existing cythonized files.

setup.py now reads the version string directly from version.py.

Environment variable handling in setup.py enhanced to recognize strings
with boolean meaning (fixes #629).

Travis' minimal build now also rebuilds cythonized files.
  • Loading branch information
mnmelo committed Feb 9, 2016
1 parent 41c86ed commit 243dffb
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 99,003 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ env:
matrix:
allow_failures:
- python: "3.3"
env: SETUP=full CYTHONIZE=true
env: SETUP=full
include:
- python: "2.7"
env: SETUP=minimal CYTHONIZE=false
env: SETUP=minimal
- python: "2.7"
env: SETUP=full CYTHONIZE=true
env: SETUP=full
- python: "3.3"
env: SETUP=full CYTHONIZE=true
env: SETUP=full
# command to install dependencies
addons:
apt:
Expand All @@ -46,7 +46,8 @@ install:
- source activate pyenv
- if [[ $SETUP == 'full' ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION cython biopython matplotlib networkx netcdf4; fi
- if [[ $SETUP == 'minimal' ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION biopython networkx; fi
- if [[ $CYTHONIZE == 'true' ]]; then find . -name '*.pyx' -exec touch '{}' \; ;fi
# ensure that cython files are rebuilt
- find . -name '*.pyx' -exec touch '{}' \;
- pip install -v package/
- pip install testsuite/
- pip install coveralls tempdir
Expand Down
Loading

0 comments on commit 243dffb

Please sign in to comment.