diff --git a/setup.py b/setup.py index db5e773ffd705635160b0549e71fb781f014e990..b55f241b0d93b198a874c407ed10a5d691b11648 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,10 @@ from setuptools import setup try: from pypandoc import convert_file - read_md = lambda f: convert_file(f, 'rst') + with open('README','w') as out: + out.write(convert_file('README.md', 'rst')) except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") - read_md = lambda f: open(f, 'r').read() import numpy as np from distutils.extension import Extension @@ -39,7 +39,8 @@ def setup_package(): cmdclass = {'build_ext': build_ext}, ext_modules = extlist, use_pyscaffold=True, - long_description=read_md('README.md')) + #long_description=read_md('README.md') + ) if __name__ == "__main__":