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