package 0.4.1

This commit is contained in:
Jia Guo
2021-08-23 19:33:51 +08:00
parent 6bc2be4454
commit cdc3d4ed5d
3 changed files with 9 additions and 3 deletions

View File

@@ -24,11 +24,13 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
pypandoc_enabled = True
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, ModuleNotFoundError):
long_description = open('README.md').read()
pypandoc_enabled = False
#import pypandoc
#long_description = pypandoc.convert('README.md', 'rst')
@@ -88,3 +90,5 @@ setup(
include_dirs=numpy.get_include(),
)
print('pypandoc enabled:', pypandoc_enabled)