python package ver 0.6 update

This commit is contained in:
Jia Guo
2022-01-29 19:54:55 +08:00
parent dc632c254e
commit e7816a226d
10 changed files with 172 additions and 20 deletions

View File

@@ -27,8 +27,10 @@ def find_version(*file_paths):
pypandoc_enabled = True
try:
import pypandoc
print('pandoc enabled')
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, ModuleNotFoundError):
print('WARNING: pandoc not enabled')
long_description = open('README.md').read()
pypandoc_enabled = False
@@ -64,7 +66,10 @@ data_mesh = list(glob.glob('insightface/thirdparty/face3d/mesh/cython/*.h'))
data_mesh += list(glob.glob('insightface/thirdparty/face3d/mesh/cython/*.c'))
data_mesh += list(glob.glob('insightface/thirdparty/face3d/mesh/cython/*.py*'))
data_objects = list(glob.glob('insightface/data/objects/*.pkl'))
data_files = [ ('insightface/data/images', data_images) ]
data_files += [ ('insightface/data/objects', data_objects) ]
data_files += [ ('insightface/thirdparty/face3d/mesh/cython', data_mesh) ]
ext_modules=cythonize(extensions)