From 69e9cf714ff6710e6ad9a34f11f2a5f15f2de841 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 19 Apr 2016 22:40:50 +0100 Subject: Use entry_points instead of scripts in setup.py This improves support for script installation on Windows. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setup.py') 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=[ -- cgit v1.2.3