
April 15, 2002
10:34 a.m.
Peter Bienstman wrote:
Hi,
Is there any way to specify in setup.py that a particular distribution requires e.g. Python 2.2, such that an error is issued if users try to install it on an earlier Python version?
import sys if sys.version < '2.2': print 'Wrong Python Version !!!' sys.exit(1) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/