Thomas Heller wrote:
From: "Edward D. Loper"
Is there a way to specify a minimum Python version that's required by a distutils package? E.g., if I make a package, and I know it requires Python 2.1, I'd like it to check the version of Python on the system where it's being installed, to make sure that it's at least 2.1.
Only in the setup script:
import sys if sys.hexversion < 0x02010100: raise RuntimeError, "Python 2.1.1 or higher required"
setup(...)
Right.
but not in the bdist packages.
The Windows installer is bound to a specific Python version, so it won't even install to a different version. The rpms are different though: they don't check for the Python version and just unzip to the version directory which was specified at RPM contruction time. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Consulting & Company: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/