mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-26 13:37:17 +08:00
Merge pull request #997 from stefanv/build/travis_numpy_py3
Fix Travis-CI builds with numpy 1.8 under Python 3
This commit is contained in:
+13
-8
@@ -34,7 +34,10 @@ before_install:
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
|
||||
- sudo apt-get update
|
||||
|
||||
- sudo apt-get install $PYTHON-numpy
|
||||
- wget https://raw.githubusercontent.com/numpy/numpy/master/numpy/_import_tools.py -O /home/travis/virtualenv/python3.2_with_system_site_packages/lib/python3.2/site-packages/numpy/_import_tools.py
|
||||
|
||||
- sudo apt-get install $PYTHON-scipy
|
||||
- sudo apt-get install libfreeimage3
|
||||
|
||||
@@ -47,22 +50,25 @@ before_install:
|
||||
- pip install --use-mirrors matplotlib;
|
||||
- fi
|
||||
|
||||
- pip install --use-mirrors pillow
|
||||
- pip install --use-mirrors cython
|
||||
- pip install --use-mirrors flake8
|
||||
- pip install --use-mirrors six
|
||||
- pip install pillow
|
||||
- pip install cython
|
||||
- pip install flake8
|
||||
- pip install six
|
||||
|
||||
- pip install --use-mirrors nose-cov
|
||||
- pip install --use-mirrors coveralls
|
||||
- pip install nose-cov
|
||||
- pip install coveralls
|
||||
|
||||
- python check_bento_build.py
|
||||
|
||||
install:
|
||||
- tools/header.py "Dependency versions"
|
||||
- tools/build_versions.py
|
||||
|
||||
- python setup.py build_ext --inplace
|
||||
|
||||
script:
|
||||
# Matplotlib settings
|
||||
- mkdir $HOME/.matplotlib
|
||||
- mkdir -p $HOME/.matplotlib
|
||||
- touch $HOME/.matplotlib/matplotlibrc
|
||||
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
|
||||
- "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"
|
||||
@@ -86,4 +92,3 @@ after_success:
|
||||
- if [[ $PYVER == '3.x' ]]; then
|
||||
- coveralls
|
||||
- fi
|
||||
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import numpy as np
|
||||
import scipy as sp
|
||||
import matplotlib as mpl
|
||||
import six
|
||||
|
||||
for m in (np, sp, mpl, six):
|
||||
print(m.__name__.rjust(10), ' ', m.__version__)
|
||||
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
|
||||
screen_width = 50
|
||||
|
||||
print('*' * screen_width)
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
header = ' '.join(sys.argv[1:])
|
||||
print('*', header.center(screen_width - 4), '*')
|
||||
print('*' * screen_width)
|
||||
|
||||
Reference in New Issue
Block a user