Show More
@@ -58,7 +58,6 from setupbase import ( | |||
|
58 | 58 | find_packages, |
|
59 | 59 | find_package_data, |
|
60 | 60 | find_scripts, |
|
61 | find_gui_scripts, | |
|
62 | 61 | find_data_files, |
|
63 | 62 | check_for_dependencies, |
|
64 | 63 | record_commit_info, |
@@ -211,10 +210,7 setuptools_extra_args = {} | |||
|
211 | 210 | |
|
212 | 211 | if 'setuptools' in sys.modules: |
|
213 | 212 | setuptools_extra_args['zip_safe'] = False |
|
214 |
setuptools_extra_args['entry_points'] = |
|
|
215 | 'console_scripts': find_scripts(True), | |
|
216 | 'gui_scripts': find_gui_scripts(True), | |
|
217 | } | |
|
213 | setuptools_extra_args['entry_points'] = find_scripts(True) | |
|
218 | 214 | setup_args['extras_require'] = dict( |
|
219 | 215 | parallel = 'pyzmq>=2.1.4', |
|
220 | 216 | zmq = 'pyzmq>=2.0.10.1', |
@@ -247,7 +243,7 else: | |||
|
247 | 243 | # check for dependencies an inform the user what is needed. This is |
|
248 | 244 | # just to make life easy for users. |
|
249 | 245 | check_for_dependencies() |
|
250 |
setup_args['scripts'] = find_scripts(False) |
|
|
246 | setup_args['scripts'] = find_scripts(False) | |
|
251 | 247 | |
|
252 | 248 | #--------------------------------------------------------------------------- |
|
253 | 249 | # Do the actual setup now |
@@ -269,7 +269,7 def find_scripts(entry_points=False): | |||
|
269 | 269 | return file paths of plain scripts [default] |
|
270 | 270 | """ |
|
271 | 271 | if entry_points: |
|
272 | scripts = [ | |
|
272 | console_scripts = [ | |
|
273 | 273 | 'ipython = IPython.frontend.terminal.ipapp:launch_new_instance', |
|
274 | 274 | 'pycolor = IPython.utils.PyColorize:main', |
|
275 | 275 | 'ipcontroller = IPython.parallel.apps.ipcontrollerapp:launch_new_instance', |
@@ -279,6 +279,10 def find_scripts(entry_points=False): | |||
|
279 | 279 | 'iptest = IPython.testing.iptest:main', |
|
280 | 280 | 'irunner = IPython.lib.irunner:main' |
|
281 | 281 | ] |
|
282 | gui_scripts = [ | |
|
283 | 'ipython-qtconsole = IPython.frontend.qt.console.ipythonqt:main', | |
|
284 | ] | |
|
285 | scripts = dict(console_scripts=console_scripts, gui_scripts=gui_scripts) | |
|
282 | 286 | else: |
|
283 | 287 | parallel_scripts = pjoin('IPython','parallel','scripts') |
|
284 | 288 | main_scripts = pjoin('IPython','scripts') |
@@ -288,32 +292,13 def find_scripts(entry_points=False): | |||
|
288 | 292 | pjoin(parallel_scripts, 'ipcluster'), |
|
289 | 293 | pjoin(parallel_scripts, 'iplogger'), |
|
290 | 294 | pjoin(main_scripts, 'ipython'), |
|
295 | pjoin(main_scripts, 'ipython-qtconsole'), | |
|
291 | 296 | pjoin(main_scripts, 'pycolor'), |
|
292 | 297 | pjoin(main_scripts, 'irunner'), |
|
293 | 298 | pjoin(main_scripts, 'iptest') |
|
294 | 299 | ] |
|
295 | 300 | return scripts |
|
296 | 301 | |
|
297 | def find_gui_scripts(entry_points=False): | |
|
298 | """Find IPython's GUI scripts. | |
|
299 | ||
|
300 | if entry_points is True: | |
|
301 | return setuptools entry_point-style definitions | |
|
302 | else: | |
|
303 | return file paths of plain scripts [default] | |
|
304 | """ | |
|
305 | if entry_points: | |
|
306 | scripts = [ | |
|
307 | 'ipython-qtconsole = IPython.frontend.qt.console.ipythonqt:main', | |
|
308 | ] | |
|
309 | else: | |
|
310 | parallel_scripts = pjoin('IPython','parallel','scripts') | |
|
311 | main_scripts = pjoin('IPython','scripts') | |
|
312 | scripts = [ | |
|
313 | pjoin(main_scripts, 'ipython-qtconsole'), | |
|
314 | ] | |
|
315 | return scripts | |
|
316 | ||
|
317 | 302 | #--------------------------------------------------------------------------- |
|
318 | 303 | # Verify all dependencies |
|
319 | 304 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now