Commit 9ab7bc54 authored by Jason R. Coombs's avatar Jason R. Coombs

Clean up syntax on entry_points.console_scripts. Fixes #2429.

parent 7ff17392
...@@ -106,16 +106,15 @@ use, go to :ref:`package_discovery` ...@@ -106,16 +106,15 @@ use, go to :ref:`package_discovery`
Entry points and automatic script creation Entry points and automatic script creation
=========================================== ===========================================
Setuptools support automatic creation of scripts upon installation, that runs Setuptools support automatic creation of scripts upon installation, that runs
code within your package if you specify them with the ``entry_point`` keyword. code within your package if you specify them with the ``entry_points`` keyword.
This is what allows you to run commands like ``pip install`` instead of having This is what allows you to run commands like ``pip install`` instead of having
to type ``python -m pip install``. To accomplish this, add the entry_points to type ``python -m pip install``. To accomplish this, add the entry_points
keyword in your ``setup.cfg``: keyword in your ``setup.cfg``:
.. code-block:: ini .. code-block:: ini
[options] [options.entry_points]
entry_points = console_scripts =
[console_script]
main = mypkg:some_func main = mypkg:some_func
When this project is installed, a ``main`` script will be installed and will When this project is installed, a ``main`` script will be installed and will
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment