[Python] setuptools python_requires

Manlio Perillo manlio.perillo a gmail.com
Sab 16 Ott 2010 15:11:41 CEST


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

Hi.

In many of my projects I add a check for the Python version being used,
like:

if sys.version_info < (2, 6):
    raise SystemExit('xxx requires Python 2.6 or higher.')


I think it would be better to specify this requirement as a
`python_requires` parameter for the setup function.

What is the reason why this is not supported?


Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky5pI0ACgkQscQJ24LbaUQsiACggAJ8F4cJBHpkDugLkvBBzO8E
zfoAni6mof5QSSGSEjH0QOozKxXVzCV7
=dgCN
-----END PGP SIGNATURE-----


Maggiori informazioni sulla lista Python