Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
switch pip doc to markdown (#19037)
Browse files Browse the repository at this point in the history
  • Loading branch information
szha authored Aug 30, 2020
1 parent a3115d5 commit ea3235e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ def skip_markdown_comments(md):
with open('doc/{0}_ADDITIONAL.md'.format(variant)) as variant_doc:
long_description = long_description + skip_markdown_comments(variant_doc.read())

# pypi only supports rst, so use pandoc to convert
import pypandoc
if platform.system() == 'Darwin':
pypandoc.download_pandoc()
long_description = pypandoc.convert_text(long_description, 'rst', 'md')
short_description = 'MXNet is an ultra-scalable deep learning framework.'
libraries = []
if variant == 'CPU':
Expand Down Expand Up @@ -164,7 +159,7 @@ def skip_markdown_comments(md):
package_data['mxnet'].append('mxnet/libquadmath.so.0')
if os.path.exists(os.path.join(libdir, 'libopenblas.so.0')):
shutil.copy(os.path.join(libdir, 'libopenblas.so.0'), mxdir)
package_data['mxnet'].append('mxnet/libquadmath.so.0')
package_data['mxnet'].append('mxnet/libopenblas.so.0')

# Copy licenses and notice
for f in os.listdir('mxnet/licenses'):
Expand All @@ -179,6 +174,7 @@ def skip_markdown_comments(md):
setup(name=package_name,
version=__version__,
long_description=long_description,
long_description_content_type='text/markdown',
description=short_description,
zip_safe=False,
packages=find_packages(),
Expand Down

0 comments on commit ea3235e

Please sign in to comment.