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
()
| 222 | #--------------------------------------------------------------------------- |
| 223 | |
| 224 | def 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 | |
| 241 | script_src = """#!{executable} |
| 242 | # This script was automatically generated by setup.py |