Skip to content
13 changes: 3 additions & 10 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,15 @@ def _supports_symlinks():
# will search for SPARK_HOME with Python.
scripts.append("pyspark/find_spark_home.py")

# Parse the README markdown file into rst for PyPI
long_description = "!!!!! missing pandoc do not upload to PyPI !!!!"
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print("Could not import pypandoc - required to package PySpark", file=sys.stderr)
except OSError:
print("Could not convert - pandoc is not installed", file=sys.stderr)
with open('README.md') as f:
long_description = f.read()

setup(
name='pyspark',
version=VERSION,
description='Apache Spark Python API',
long_description=long_description,
long_description_content_type="text/markdown",
author='Spark Developers',
author_email='[email protected]',
url='https://github.com/apache/spark/tree/master/python',
Expand Down Expand Up @@ -213,7 +207,6 @@ def _supports_symlinks():
scripts=scripts,
license='http://www.apache.org/licenses/LICENSE-2.0',
install_requires=['py4j==0.10.8.1'],
setup_requires=['pypandoc'],
extras_require={
'ml': ['numpy>=1.7'],
'mllib': ['numpy>=1.7'],
Expand Down