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

[PIP] switch pip doc to markdown #19037

Merged
merged 1 commit into from
Aug 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
marcoabreu marked this conversation as resolved.
Show resolved Hide resolved

# 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