summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Riley <justin.t.riley@gmail.com>2011-07-07 09:57:17 -0400
committerJustin Riley <justin.t.riley@gmail.com>2011-07-07 09:57:17 -0400
commit6abd2449fc31d4dcb59d466102f3299bd7c4bd60 (patch)
tree88eadbbdb78c7b89946f8726f176426d0dbcbc8e
parent40fedb1cf8c2cd7147d1e1308065de83c8dad4ff (diff)
downloadboto-6abd2449fc31d4dcb59d466102f3299bd7c4bd60.tar.gz
setup.py: raise error if Python <= 2.4
-rw-r--r--setup.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index c8eb980f..8d667b1e 100644
--- a/setup.py
+++ b/setup.py
@@ -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",