Add error if trying to run python setup.py sdist without pandoc
This commit is contained in:
2
setup.py
2
setup.py
@@ -49,6 +49,8 @@ try:
|
|||||||
changelog = '\nChangelog\n=============\n' + changelog
|
changelog = '\nChangelog\n=============\n' + changelog
|
||||||
long_description += changelog
|
long_description += changelog
|
||||||
except (IOError, ImportError):
|
except (IOError, ImportError):
|
||||||
|
if sys.argv[2] == 'sdist':
|
||||||
|
raise
|
||||||
long_description = ''
|
long_description = ''
|
||||||
|
|
||||||
# Clean command, invoked with `python setup.py clean`
|
# Clean command, invoked with `python setup.py clean`
|
||||||
|
|||||||
Reference in New Issue
Block a user