From e4d7e21a660d2202f4bce2fb39a2ed101c1b53d6 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Thu, 31 Jan 2019 01:03:21 -0800 Subject: [PATCH] Add error if trying to run `python setup.py` sdist without pandoc --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index c7c7b79..c1ddfdc 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,8 @@ try: changelog = '\nChangelog\n=============\n' + changelog long_description += changelog except (IOError, ImportError): + if sys.argv[2] == 'sdist': + raise long_description = '' # Clean command, invoked with `python setup.py clean`