summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2017-12-10 14:52:48 +0300
committerDmitry Shachnev <mitya57@gmail.com>2017-12-10 14:52:48 +0300
commitfee30d346cc407b76394f549077d0945ec355508 (patch)
tree1588ee9fc098ae24fca4d4f73a6642e5c0e03243
parent54bf6d6369274e8ec0e040d5287038b1cc92329c (diff)
downloadpython-markdown-mitya57/script-name.tar.gz
Restore code to use markdown_py as the console script name.mitya57/script-name
-rwxr-xr-xsetup.py9
1 files changed, 8 insertions, 1 deletions
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=[