Show More
@@ -360,15 +360,14 b' def target_update(target,deps,cmd):' | |||||
360 | #--------------------------------------------------------------------------- |
|
360 | #--------------------------------------------------------------------------- | |
361 |
|
361 | |||
362 | def find_entry_points(): |
|
362 | def find_entry_points(): | |
363 | """Find IPython's scripts. |
|
363 | """Defines the command line entry points for IPython | |
364 |
|
364 | |||
365 | if entry_points is True: |
|
365 | This always uses setuptools-style entry points. When setuptools is not in | |
366 | return setuptools entry_point-style definitions |
|
366 | use, our own build_scripts_entrypt class below parses these and builds | |
367 | else: |
|
367 | command line scripts. | |
368 | return file paths of plain scripts [default] |
|
|||
369 |
|
368 | |||
370 | suffix is appended to script names if entry_points is True, so that the |
|
369 | Each of our entry points gets both a plain name, e.g. ipython, and one | |
371 | Python 3 scripts get named "ipython3" etc. |
|
370 | suffixed with the Python major version number, e.g. ipython3. | |
372 | """ |
|
371 | """ | |
373 | ep = [ |
|
372 | ep = [ | |
374 | 'ipython%s = IPython:start_ipython', |
|
373 | 'ipython%s = IPython:start_ipython', | |
@@ -388,6 +387,14 b" if __name__ == '__main__':" | |||||
388 | """ |
|
387 | """ | |
389 |
|
388 | |||
390 | class build_scripts_entrypt(build_scripts): |
|
389 | class build_scripts_entrypt(build_scripts): | |
|
390 | """Build the command line scripts | |||
|
391 | ||||
|
392 | Parse setuptools style entry points and write simple scripts to run the | |||
|
393 | target functions. | |||
|
394 | ||||
|
395 | On Windows, this also creates .cmd wrappers for the scripts so that you can | |||
|
396 | easily launch them from a command line. | |||
|
397 | """ | |||
391 | def run(self): |
|
398 | def run(self): | |
392 | self.mkpath(self.build_dir) |
|
399 | self.mkpath(self.build_dir) | |
393 | outfiles = [] |
|
400 | outfiles = [] |
General Comments 0
You need to be logged in to leave comments.
Login now