summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=[