Skip to content

Commit

Permalink
Merge pull request #250 from jtriley/fix-setup.py
Browse files Browse the repository at this point in the history
setup.py: raise error if Python <= 2.4
  • Loading branch information
garnaat committed Jul 7, 2011
2 parents 40fedb1 + 6abd244 commit c23292e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions setup.py
Expand Up @@ -34,11 +34,10 @@


from boto import Version from boto import Version


install_requires = [] if sys.version_info <= (2, 4):
maj, min, micro, rel, serial = sys.version_info error = "ERROR: boto requires Python Version 2.5 or above...exiting."
if (maj, min) == (2, 4): print >> sys.stderr, error
# boto needs hashlib module which is not in py2.4 sys.exit(1)
install_requires.append("hashlib")


setup(name = "boto", setup(name = "boto",
version = Version, version = Version,
Expand All @@ -51,7 +50,6 @@
"bin/list_instances", "bin/taskadmin", "bin/kill_instance", "bin/list_instances", "bin/taskadmin", "bin/kill_instance",
"bin/bundle_image", "bin/pyami_sendmail", "bin/lss3", "bin/bundle_image", "bin/pyami_sendmail", "bin/lss3",
"bin/cq", "bin/route53"], "bin/cq", "bin/route53"],
install_requires = install_requires,
url = "http://code.google.com/p/boto/", url = "http://code.google.com/p/boto/",
packages = ["boto", "boto.sqs", "boto.s3", "boto.gs", "boto.file", packages = ["boto", "boto.sqs", "boto.s3", "boto.gs", "boto.file",
"boto.ec2", "boto.ec2.cloudwatch", "boto.ec2.autoscale", "boto.ec2", "boto.ec2.cloudwatch", "boto.ec2.autoscale",
Expand Down

0 comments on commit c23292e

Please sign in to comment.