Skip to content

Commit

Permalink
setup: Don't explicitly check for supported versions
Browse files Browse the repository at this point in the history
With pypy3 advertising itself as py3.2, but still behaving like py3.3,
the check started to become awkward.  Plus, it seems to be nicer to
ask for forgiveness rather than permission.
  • Loading branch information
akx committed Feb 7, 2016
1 parent 7792cb1 commit e3d3413
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# -*- coding: utf-8 -*-

import sys
if sys.version_info < (2, 6) or (3,) <= sys.version_info < (3, 3):
print("Babel requires Python 2.6, 2.7 or 3.3+")
sys.exit(1)


import os
import subprocess
import sys

from setuptools import setup

from babel import __version__
try:
from babel import __version__
except SyntaxError as exc:
sys.stderr.write("Unable to import Babel (%s). Are you running a supported version of Python?\n" % exc)
sys.exit(1)


sys.path.append(os.path.join('doc', 'common'))
try:
Expand Down

0 comments on commit e3d3413

Please sign in to comment.