Skip to content
This repository was archived by the owner on Jun 4, 2022. It is now read-only.

PIP: fix install with new read function #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down