Skip to content

Use miniconda to install python packages in Travis#336

Merged
ZedThree merged 1 commit intonextfrom
travis-conda
Oct 26, 2016
Merged

Use miniconda to install python packages in Travis#336
ZedThree merged 1 commit intonextfrom
travis-conda

Conversation

@ZedThree
Copy link
Member

Problems with using python with Travis seem to be quite common. Travis themselves recommend not using the system package manager to install python modules, but then trying to install e.g. Numpy through pip is a bit of a nightmare and can take ages.

Instead, using Conda's Miniconda to download vaguely up-to-date pre-compiled packages. This gives also gives us access to the python NetCDF module, which is a bit better than the Scipy version. It also makes a virtual environment, so it should ensure we don't accidentally use any system-python things.

One big side-effect of this is that it does use python 3. Luckily, we're python 3 compatible, so all the tests pass! But this will enforce future tests being python 3 compatible.

Also, I explicitly don't install matplotlib. Some of the tests try to use it to make figures, but at least one of the tests aborts rather than throws an exception which would otherwise be caught.

Should provide more up-to-date python modules
@ZedThree ZedThree merged commit 2a56e36 into next Oct 26, 2016
@ZedThree ZedThree mentioned this pull request Oct 28, 2016
@ZedThree ZedThree deleted the travis-conda branch November 29, 2016 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant