aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-19 22:40:50 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-19 22:40:50 +0100
commit69e9cf714ff6710e6ad9a34f11f2a5f15f2de841 (patch)
treeb9f2c73c7c3ede12fd3c58208c03592396b396ef /setup.py
parent03110307662f75daa97a871b7e128715543ba306 (diff)
Use entry_points instead of scripts in setup.py
This improves support for script installation on Windows.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 31d0c5f..cb969db 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,11 @@ setup(
author_email='mike@zwobble.org',
url='http://github.com/mwilliamson/python-mammoth',
packages=['mammoth', 'mammoth.docx', 'mammoth.html', 'mammoth.style_reader', 'mammoth.writers'],
- scripts=["scripts/mammoth"],
+ entry_points={
+ "console_scripts": [
+ "mammoth=mammoth.cli:main"
+ ]
+ },
keywords="docx word office clean html markdown md",
install_requires=_install_requires,
classifiers=[