MCPcopy Create free account
hub / github.com/ipython/ipython / find_entry_points

Function find_entry_points

setupbase.py:224–239  ·  view source on GitHub ↗

Defines the command line entry points for IPython This always uses setuptools-style entry points. When setuptools is not in use, our own build_scripts_entrypt class below parses these and builds command line scripts. Each of our entry points gets both a plain name, e.g. ipython, an

()

Source from the content-addressed store, hash-verified

222#---------------------------------------------------------------------------
223
224def find_entry_points():
225 """Defines the command line entry points for IPython
226
227 This always uses setuptools-style entry points. When setuptools is not in
228 use, our own build_scripts_entrypt class below parses these and builds
229 command line scripts.
230
231 Each of our entry points gets both a plain name, e.g. ipython, and one
232 suffixed with the Python major version number, e.g. ipython3.
233 """
234 ep = [
235 'ipython%s = IPython:start_ipython',
236 'iptest%s = IPython.testing.iptestcontroller:main',
237 ]
238 suffix = str(sys.version_info[0])
239 return [e % '' for e in ep] + [e % suffix for e in ep]
240
241script_src = """#!{executable}
242# This script was automatically generated by setup.py

Callers 2

setup.pyFile · 0.90
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected