Show More
@@ -1,66 +1,66 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | # encoding: utf-8 |
|
3 | 3 | """ |
|
4 | 4 | IPython. |
|
5 | 5 | |
|
6 | 6 | IPython is a set of tools for interactive and exploratory computing in Python. |
|
7 | 7 | """ |
|
8 | 8 | #----------------------------------------------------------------------------- |
|
9 | 9 | # Copyright (C) 2008-2009 The IPython Development Team |
|
10 | 10 | # |
|
11 | 11 | # Distributed under the terms of the BSD License. The full license is in |
|
12 | 12 | # the file COPYING, distributed as part of this software. |
|
13 | 13 | #----------------------------------------------------------------------------- |
|
14 | 14 | |
|
15 | 15 | #----------------------------------------------------------------------------- |
|
16 | 16 | # Imports |
|
17 | 17 | #----------------------------------------------------------------------------- |
|
18 | 18 | from __future__ import absolute_import |
|
19 | 19 | |
|
20 | 20 | import os |
|
21 | 21 | import sys |
|
22 | 22 | |
|
23 | 23 | #----------------------------------------------------------------------------- |
|
24 | 24 | # Setup everything |
|
25 | 25 | #----------------------------------------------------------------------------- |
|
26 | 26 | |
|
27 |
if sys.version[0:3] < '2. |
|
|
28 |
raise ImportError('Python Version 2. |
|
|
27 | if sys.version[0:3] < '2.6': | |
|
28 | raise ImportError('Python Version 2.6 or above is required for IPython.') | |
|
29 | 29 | |
|
30 | 30 | |
|
31 | 31 | # Make it easy to import extensions - they are always directly on pythonpath. |
|
32 | 32 | # Therefore, non-IPython modules can be added to extensions directory. |
|
33 | 33 | # This should probably be in ipapp.py. |
|
34 | 34 | sys.path.append(os.path.join(os.path.dirname(__file__), "extensions")) |
|
35 | 35 | |
|
36 | 36 | #----------------------------------------------------------------------------- |
|
37 | 37 | # Setup the top level names |
|
38 | 38 | #----------------------------------------------------------------------------- |
|
39 | 39 | |
|
40 | 40 | from .config.loader import Config |
|
41 | 41 | from .core import release |
|
42 | 42 | from .core.application import Application |
|
43 | 43 | from .core.ipapp import IPythonApp |
|
44 | 44 | from .core.embed import embed |
|
45 | 45 | from .core.error import TryNext |
|
46 | 46 | from .core.iplib import InteractiveShell |
|
47 | 47 | from .testing import test |
|
48 | 48 | |
|
49 | 49 | from .lib import ( |
|
50 | 50 | enable_wx, disable_wx, |
|
51 | 51 | enable_gtk, disable_gtk, |
|
52 | 52 | enable_qt4, disable_qt4, |
|
53 | 53 | enable_tk, disable_tk, |
|
54 | 54 | set_inputhook, clear_inputhook, |
|
55 | 55 | current_gui, spin, |
|
56 | 56 | appstart_qt4, appstart_wx, |
|
57 | 57 | appstart_gtk, appstart_tk |
|
58 | 58 | ) |
|
59 | 59 | |
|
60 | 60 | # Release data |
|
61 | 61 | __author__ = '' |
|
62 | 62 | for author, email in release.authors.values(): |
|
63 | 63 | __author__ += author + ' <' + email + '>\n' |
|
64 | 64 | __license__ = release.license |
|
65 | 65 | __version__ = release.version |
|
66 | 66 | __revision__ = release.revision |
General Comments 0
You need to be logged in to leave comments.
Login now