diff options
author | Justin Riley <justin.t.riley@gmail.com> | 2011-07-07 09:57:17 -0400 |
---|---|---|
committer | Justin Riley <justin.t.riley@gmail.com> | 2011-07-07 09:57:17 -0400 |
commit | 6abd2449fc31d4dcb59d466102f3299bd7c4bd60 (patch) | |
tree | 88eadbbdb78c7b89946f8726f176426d0dbcbc8e | |
parent | 40fedb1cf8c2cd7147d1e1308065de83c8dad4ff (diff) | |
download | boto-6abd2449fc31d4dcb59d466102f3299bd7c4bd60.tar.gz |
setup.py: raise error if Python <= 2.4
-rw-r--r-- | setup.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -34,11 +34,10 @@ import sys from boto import Version -install_requires = [] -maj, min, micro, rel, serial = sys.version_info -if (maj, min) == (2, 4): - # boto needs hashlib module which is not in py2.4 - install_requires.append("hashlib") +if sys.version_info <= (2, 4): + error = "ERROR: boto requires Python Version 2.5 or above...exiting." + print >> sys.stderr, error + sys.exit(1) setup(name = "boto", version = Version, @@ -51,7 +50,6 @@ setup(name = "boto", "bin/list_instances", "bin/taskadmin", "bin/kill_instance", "bin/bundle_image", "bin/pyami_sendmail", "bin/lss3", "bin/cq", "bin/route53"], - install_requires = install_requires, url = "http://code.google.com/p/boto/", packages = ["boto", "boto.sqs", "boto.s3", "boto.gs", "boto.file", "boto.ec2", "boto.ec2.cloudwatch", "boto.ec2.autoscale", |