Skip to content

Commit

Permalink
Fix long_description loader in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuess committed Oct 25, 2017
1 parent 85cf015 commit 5fb1a1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
author_emails = ["[email protected]", "[email protected]"]
name = "mpnum"
description = "matrix product representation library"
if os.path.isfile('README.txt'):
long_description = open('README.txt').read()
else:
try:
# can be created via pandoc:
# pandoc --from=markdown --to=rst --output=README.rst README.md
long_description = open('README.rst').read()
except FileNotFoundError:
long_description = description
year = "2016"

Expand Down

0 comments on commit 5fb1a1b

Please sign in to comment.