diff --git a/.travis.yml b/.travis.yml index 40aca4d..b88755b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,17 +2,15 @@ language: python python: - "2.7" virtualenv: - system_site_packages: true + system_site_packages: true before_install: - sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list" - sudo apt-get update -qq - sudo apt-get install -y --force-yes openfoam222 - sudo apt-get install libhdf5-serial-dev - pip install numpy # pyfoam requires numpy - - chmod +x ./install_pyFoam.sh - - sudo ./install_pyFoam.sh - source /opt/openfoam222/etc/bashrc - - python check_PyFoam.py + - sudo ./install_external.sh # (1) Install cython and numexpr externally because the requirements does # not work with them # (2) Pytables breaks with latest Cython diff --git a/install_pyFoam.sh b/install_external.sh similarity index 75% rename from install_pyFoam.sh rename to install_external.sh index 40f9c32..a703a08 100755 --- a/install_pyFoam.sh +++ b/install_external.sh @@ -1,11 +1,11 @@ #!/bin/bash - +set -e # install pyFoam as a regular user # fetch pyFoam -cd ~ svn co https://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder/other/scripting/PyFoam/ # move to installation directory cd PyFoam python setup.py install - - +cd .. +source /opt/openfoam222/etc/bashrc +python check_PyFoam.py diff --git a/setup.py b/setup.py index 5051d8e..0877cbe 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.rst', 'r') as readme: README_TEXT = readme.read() -VERSION = '0.001' +VERSION = '0.1.0' def write_version_py(filename=None):