diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2017-12-10 14:52:48 +0300 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2017-12-10 14:52:48 +0300 |
commit | fee30d346cc407b76394f549077d0945ec355508 (patch) | |
tree | 1588ee9fc098ae24fca4d4f73a6642e5c0e03243 /setup.py | |
parent | 54bf6d6369274e8ec0e040d5287038b1cc92329c (diff) | |
download | python-markdown-mitya57/script-name.tar.gz |
Restore code to use markdown_py as the console script name.mitya57/script-name
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -52,6 +52,13 @@ You may ask for help and discuss various other issues on the ''' +# The command line script name. Currently set to "markdown_py" so as not to +# conflict with the perl implimentation (which uses "markdown"). We can't use +# "markdown.py" as the default config on some systems will cause the script to +# try to import itself rather than the library which will raise an error. +SCRIPT_NAME = 'markdown_py' + + setup( name='Markdown', version=version, @@ -67,7 +74,7 @@ setup( packages=['markdown', 'markdown.extensions'], entry_points={ 'console_scripts': [ - 'markdown = markdown.__main__:run', + '%s = markdown.__main__:run' % SCRIPT_NAME, ] }, classifiers=[ |