mirror of
https://github.com/deepinsight/insightface.git
synced 2026-04-14 05:30:17 +00:00
package 0.4.1
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user