From fee30d346cc407b76394f549077d0945ec355508 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sun, 10 Dec 2017 14:52:48 +0300 Subject: Restore code to use markdown_py as the console script name. --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 668696a..e6eb065 100755 --- a/setup.py +++ b/setup.py @@ -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=[ -- cgit v1.2.1