Show More
The requested changes are too big and content was truncated. Show full diff
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,93 +1,92 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | # -*- coding: utf-8 -*- |
|
3 | 3 | """Setup script for exe distribution of IPython (does not require python). |
|
4 | 4 | |
|
5 | 5 | - Requires py2exe |
|
6 | 6 | |
|
7 | 7 | - install pyreadline in ipython root directory by running: |
|
8 | 8 | |
|
9 | 9 | svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline |
|
10 | 10 | |
|
11 | 11 | - Create the distribution in 'dist' by running "python exesetup.py py2exe" |
|
12 | 12 | |
|
13 | 13 | - Run ipython.exe to go. |
|
14 | 14 | |
|
15 | 15 | """ |
|
16 | 16 | |
|
17 | 17 | #***************************************************************************** |
|
18 | 18 | # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu> |
|
19 | 19 | # |
|
20 | 20 | # Distributed under the terms of the BSD License. The full license is in |
|
21 | 21 | # the file COPYING, distributed as part of this software. |
|
22 | 22 | #***************************************************************************** |
|
23 | 23 | |
|
24 | 24 | # Stdlib imports |
|
25 | 25 | import os |
|
26 | 26 | import sys |
|
27 | 27 | |
|
28 | 28 | from glob import glob |
|
29 | 29 | |
|
30 | 30 | |
|
31 | 31 | # A few handy globals |
|
32 | 32 | isfile = os.path.isfile |
|
33 | 33 | pjoin = os.path.join |
|
34 | 34 | |
|
35 | 35 | from distutils.core import setup |
|
36 | 36 | import py2exe |
|
37 | 37 | |
|
38 | 38 | # update the manuals when building a source dist |
|
39 | 39 | # Release.py contains version, authors, license, url, keywords, etc. |
|
40 | 40 | execfile(pjoin('IPython','Release.py')) |
|
41 | 41 | |
|
42 | 42 | # A little utility we'll need below, since glob() does NOT allow you to do |
|
43 | 43 | # exclusion on multiple endings! |
|
44 | 44 | def file_doesnt_endwith(test,endings): |
|
45 | 45 | """Return true if test is a file and its name does NOT end with any |
|
46 | 46 | of the strings listed in endings.""" |
|
47 | 47 | if not isfile(test): |
|
48 | 48 | return False |
|
49 | 49 | for e in endings: |
|
50 | 50 | if test.endswith(e): |
|
51 | 51 | return False |
|
52 | 52 | return True |
|
53 | 53 | |
|
54 | 54 | |
|
55 | 55 | if 'setuptools' in sys.modules: |
|
56 | 56 | # setuptools config for egg building |
|
57 | 57 | egg_extra_kwds = { |
|
58 | 58 | 'entry_points': { |
|
59 | 59 | 'console_scripts': [ |
|
60 | 60 | 'ipython = IPython.ipapi:launch_new_instance', |
|
61 | 61 | 'pycolor = IPython.PyColorize:main' |
|
62 | 62 | ]} |
|
63 | 63 | } |
|
64 | 64 | scriptfiles = [] |
|
65 | 65 | # eggs will lack docs, examples XXX not anymore |
|
66 | 66 | #datafiles = [('lib', 'IPython/UserConfig', cfgfiles)] |
|
67 | 67 | else: |
|
68 | 68 | egg_extra_kwds = {} |
|
69 | 69 | |
|
70 | 70 | |
|
71 | 71 | # Call the setup() routine which does most of the work |
|
72 | 72 | setup(name = name, |
|
73 | 73 | options = { |
|
74 | 74 | 'py2exe': { |
|
75 | 75 | 'packages' : ['IPython', 'IPython.Extensions', 'IPython.external','pyreadline'], |
|
76 | 76 | } |
|
77 | 77 | }, |
|
78 | 78 | version = version, |
|
79 | 79 | description = description, |
|
80 | 80 | long_description = long_description, |
|
81 | 81 | author = authors['Fernando'][0], |
|
82 | 82 | author_email = authors['Fernando'][1], |
|
83 | 83 | url = url, |
|
84 | 84 | download_url = download_url, |
|
85 | 85 | license = license, |
|
86 | 86 | platforms = platforms, |
|
87 | 87 | keywords = keywords, |
|
88 | packages = ['IPython', 'IPython.Extensions', 'IPython.external'], | |
|
89 | 88 | console = ['ipython.py'], |
|
90 | 89 | |
|
91 | 90 | # extra params needed for eggs |
|
92 | 91 | **egg_extra_kwds |
|
93 | 92 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now