Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chid authored Jul 13, 2016
1 parent cc3dac4 commit cfbeef6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import os
from setuptools import setup

try:
from pypandoc import convert

def read_md(f): return convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")

def read_md(f): return open(f, 'r').read()

README = read_md('README.md')
README = open('README.rst','r').read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
Expand Down

0 comments on commit cfbeef6

Please sign in to comment.