From d06669dc13ed0d3a8579658175ea27468fce9a88 Mon Sep 17 00:00:00 2001 From: Ivan Bondarev Date: Sun, 21 Oct 2018 16:52:51 +0300 Subject: [PATCH] PIP: fix install with new read function --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index da3ac99..2feec1b 100644 --- a/setup.py +++ b/setup.py @@ -48,10 +48,9 @@ def find_version(*paths): raise RuntimeError('Unable to find version string') -def read_description(*paths): - """Build a file path from *paths* and return the contents.""" - with open(os.path.join(*paths), 'r') as f: - return f.read() +def read_description(filename): + """Return the contents of filename.""" + return open(os.path.join(os.path.dirname(__file__), filename)).read() def read_requirements(filename):