[TIP] Tox & setup.py install_requires

Tres Seaver tseaver at palladion.com
Sun Mar 1 11:29:24 PST 2015


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

On 02/28/2015 08:55 PM, Donald Stufft wrote:
> 
>> On Feb 28, 2015, at 8:50 PM, Tres Seaver <tseaver at palladion.com>
>> wrote:
>> 
>> Signed PGP part On 02/28/2015 08:44 PM, Donald Stufft wrote:
>> 
>>> As far as I’m aware, when creating a virtual environment it will 
>>> install with deps, but when re-using a virtual environment it will
>>> use —no-deps as an optimization.
>> 
>> Hmm, that isn't my memory, but maybe it has changed over time?  In
>> any case, that seems like a lame pseudo-optimization:  what if I'm
>> hacking on setup.py and add a new 'install_requires' dependency,
>> after already running tox?
>> 
> 
> I’m pretty sure that it looks at your setup.py to determine if it
> needs to recreate the environment. Adding something to
> install_requires should trigger it to not use —no-deps.

Nope -- I just checked.  If the '[testenv]' uses 'setup.py test', then
the new dependencies end up in '.eggs', not in the virtualenvs'
'site-packages'.


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)

iQIcBAEBAgAGBQJU82iUAAoJEPKpaDSJE9HY1ukP/jt9dNTjTIzb+BkQIV/6gjAW
yMJ2jHy+sJurMZCy1K1y0exJXO12OKjAJbZb0HDZjpxq73AULiRyvwKQjFMEaIK7
dk3XZqbMfLrUNF9CD89LUeu14g1LMVEuF3ruFCj90DKersgFbCgkc0+lg+GPuV+T
qVuJcN5Ryni09SjLH2muBPybA2pqys3TvlBwGa049DN6Fwk3T44djOG5wZLF1cDr
R1j1E4oyfCzRrP+FK57KOUuAdnYNCqVdX8B6Ly+eTOqKlgP2ooOwVBgD8fDizB2U
SykNzdm8sP34uhchkSn3I6WlctqXiJbY+R9LfgS5e8/0G6IM3unxDb/c+kCCtnQ7
gPWmr/GDbTv6IZXyMLGKngcSay0pH5pxmKWQLUsJq2U1OJzrvQvrvCOKXq0wxtMf
nTSN5p+5+Et1YKgnTB12k3mzhHgthe/v9/mV4qW2o+K2gFmw7eQU4AVPSE8TuDO5
VxUJM9uNt3hAolYivJF5icuzYDTNtOk8TUCnvPvk0YykftJqXUa9Kth9a370/Zp7
swfHN9DlxMillOeHF3ExEFsnrFtY77DC5ifMAKwNgMKMuHt3Xz9Xrwg/b5COkMdd
eCgiMVvd8ludppg9z/ghHI5hUBD/HfM/FPwWkAAtA2KdCyblUUwuL8CTyR11BDwL
acyY3Blm0fw3hea0zana
=IwUE
-----END PGP SIGNATURE-----




More information about the testing-in-python mailing list