[TIP] tox and pypy and numpypy

Tres Seaver tseaver at palladion.com
Fri Nov 21 08:54:10 PST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/21/2014 03:08 AM, Albert-Jan Roskam wrote:

> I am using the latest version of Tox and I would like to include Pypy
> in my list of environments. One of the required packages is numpy. 
> Currently, tox tries to pip install the standard numpy (which fails), 
> not numpypy. What is the correct way to solve this? I just read about 
> 'use_sitepackages=True', which might be an option.

You can set up the 'deps' for the environment differently.  E.g.:


- ------------------------- %< --------------------------
[tox]
envlist = py26,py27,pypy

[testenv]
deps =
    nose
    numpy
commands =
    nosetests

[testenv:pypy]
deps =
    nose
    numpypy
commands =
    nosetests
- ------------------------- %< --------------------------


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlRvbjIACgkQ+gerLs4ltQ537QCgpww53yCnQ+RoRZe7QP7imPfo
DnQAn1DDLgNj1AiOt7rFQyHxUhtli4WC
=Xg24
-----END PGP SIGNATURE-----




More information about the testing-in-python mailing list