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