Show More
@@ -13,6 +13,23 b' requires utilities which are not available under Windows."""' | |||||
13 | # the file COPYING, distributed as part of this software. |
|
13 | # the file COPYING, distributed as part of this software. | |
14 | #------------------------------------------------------------------------------- |
|
14 | #------------------------------------------------------------------------------- | |
15 |
|
15 | |||
|
16 | #----------------------------------------------------------------------------- | |||
|
17 | # Minimal Python version sanity check | |||
|
18 | #----------------------------------------------------------------------------- | |||
|
19 | ||||
|
20 | import sys | |||
|
21 | ||||
|
22 | # This check is also made in IPython/__init__, don't forget to update both when | |||
|
23 | # changing Python version requirements. | |||
|
24 | if sys.version[0:3] < '2.5': | |||
|
25 | error = """\ | |||
|
26 | ERROR: 'IPython requires Python Version 2.5 or above.' | |||
|
27 | Exiting.""" | |||
|
28 | print >> sys.stderr, error | |||
|
29 | sys.exit(1) | |||
|
30 | ||||
|
31 | # At least we're on Python 2.5 or newer, move on. | |||
|
32 | ||||
16 | #------------------------------------------------------------------------------- |
|
33 | #------------------------------------------------------------------------------- | |
17 | # Imports |
|
34 | # Imports | |
18 | #------------------------------------------------------------------------------- |
|
35 | #------------------------------------------------------------------------------- | |
@@ -20,7 +37,6 b' requires utilities which are not available under Windows."""' | |||||
20 | # Stdlib imports |
|
37 | # Stdlib imports | |
21 | import os |
|
38 | import os | |
22 | import shutil |
|
39 | import shutil | |
23 | import sys |
|
|||
24 |
|
40 | |||
25 | from glob import glob |
|
41 | from glob import glob | |
26 |
|
42 | |||
@@ -30,6 +46,7 b" if os.path.exists('MANIFEST'): os.remove('MANIFEST')" | |||||
30 |
|
46 | |||
31 | from distutils.core import setup |
|
47 | from distutils.core import setup | |
32 |
|
48 | |||
|
49 | # Our own imports | |||
33 | from IPython.utils.genutils import target_update |
|
50 | from IPython.utils.genutils import target_update | |
34 |
|
51 | |||
35 | from setupbase import ( |
|
52 | from setupbase import ( |
General Comments 0
You need to be logged in to leave comments.
Login now