[Distutils] [Python] setuptools python_requires

Manlio Perillo manlio.perillo at gmail.com
Sat Oct 16 15:29:20 CEST 2010


-----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
_______________________________________________
Python mailing list
Python at lists.python.it
http://lists.python.it/mailman/listinfo/python

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

iEYEARECAAYFAky5qLAACgkQscQJ24LbaUTy5ACggh4EtKGjzKNACEGyxfY+g7Yr
prsAn02ESKScMxpqh3uxDpWLnv09KJFs
=+Yqt
-----END PGP SIGNATURE-----


More information about the Distutils-SIG mailing list