Show More
@@ -82,58 +82,21 b' setup_args = dict(' | |||||
82 | # Find packages |
|
82 | # Find packages | |
83 | #--------------------------------------------------------------------------- |
|
83 | #--------------------------------------------------------------------------- | |
84 |
|
84 | |||
85 | def add_package(packages,pname,config=False,tests=False,scripts=False, |
|
|||
86 | others=None): |
|
|||
87 | """ |
|
|||
88 | Add a package to the list of packages, including certain subpackages. |
|
|||
89 | """ |
|
|||
90 | packages.append('.'.join(['IPython',pname])) |
|
|||
91 | if config: |
|
|||
92 | packages.append('.'.join(['IPython',pname,'config'])) |
|
|||
93 | if tests: |
|
|||
94 | packages.append('.'.join(['IPython',pname,'tests'])) |
|
|||
95 | if scripts: |
|
|||
96 | packages.append('.'.join(['IPython',pname,'scripts'])) |
|
|||
97 | if others is not None: |
|
|||
98 | for o in others: |
|
|||
99 | packages.append('.'.join(['IPython',pname,o])) |
|
|||
100 |
|
||||
101 | def find_packages(): |
|
85 | def find_packages(): | |
102 | """ |
|
86 | """ | |
103 | Find all of IPython's packages. |
|
87 | Find all of IPython's packages. | |
104 | """ |
|
88 | """ | |
105 |
|
|
89 | excludes = ['deathrow'] | |
106 | add_package(packages, 'config', tests=True, others=['profile']) |
|
90 | packages = [] | |
107 | add_package(packages, 'core', tests=True) |
|
91 | for dir,subdirs,files in os.walk('IPython'): | |
108 | add_package(packages, 'extensions') |
|
92 | package = dir.replace(os.path.sep, '.') | |
109 | add_package(packages, 'external') |
|
93 | if any([ package.startswith('IPython.'+exc) for exc in excludes ]): | |
110 | add_package(packages, 'external.argparse') |
|
94 | # package is to be excluded (e.g. deathrow) | |
111 | add_package(packages, 'external.decorator') |
|
95 | continue | |
112 | add_package(packages, 'external.decorators') |
|
96 | if '__init__.py' not in files: | |
113 | add_package(packages, 'external.guid') |
|
97 | # not a package | |
114 | add_package(packages, 'external.Itpl') |
|
98 | continue | |
115 | add_package(packages, 'external.mglob') |
|
99 | packages.append(package) | |
116 | add_package(packages, 'external.path') |
|
|||
117 | add_package(packages, 'external.pexpect') |
|
|||
118 | add_package(packages, 'external.pyparsing') |
|
|||
119 | add_package(packages, 'external.simplegeneric') |
|
|||
120 | add_package(packages, 'external.ssh') |
|
|||
121 | add_package(packages, 'kernel') |
|
|||
122 | add_package(packages, 'frontend') |
|
|||
123 | add_package(packages, 'frontend.qt') |
|
|||
124 | add_package(packages, 'frontend.qt.console', tests=True) |
|
|||
125 | add_package(packages, 'frontend.terminal', tests=True) |
|
|||
126 | add_package(packages, 'lib', tests=True) |
|
|||
127 | add_package(packages, 'parallel', tests=True, scripts=True, |
|
|||
128 | others=['apps','engine','client','controller']) |
|
|||
129 | add_package(packages, 'quarantine', tests=True) |
|
|||
130 | add_package(packages, 'scripts') |
|
|||
131 | add_package(packages, 'testing', tests=True) |
|
|||
132 | add_package(packages, 'testing.plugin', tests=False) |
|
|||
133 | add_package(packages, 'utils', tests=True) |
|
|||
134 | add_package(packages, 'zmq') |
|
|||
135 | add_package(packages, 'zmq.pylab') |
|
|||
136 | add_package(packages, 'zmq.gui') |
|
|||
137 | return packages |
|
100 | return packages | |
138 |
|
101 | |||
139 | #--------------------------------------------------------------------------- |
|
102 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now