Skip to content

Commit

Permalink
fixing pip install of package (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Sep 27, 2019
1 parent 6bb1230 commit 8272cc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ venv.bak/

# mypy
.mypy_cache/

python/LICENSE.txt
Empty file removed python/HISTORY.rst
Empty file.
11 changes: 7 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
_major = '0.1'
_minor = '0.0'

shutil.copyfile('../LICENSE', 'LICENSE.txt')
README_FILE = 'README.md'
LICENSE_FILE = 'LICENSE.txt'

# Note: used when generating the wheel but not on pip install of the package
if os.path.exists('../LICENSE'):
shutil.copyfile('../LICENSE', LICENSE_FILE)

if os.path.exists('../major.version'):
with open('../major.version', 'rt') as bf:
Expand Down Expand Up @@ -64,10 +69,8 @@
]
}

with open('README.md', 'r', encoding='utf-8') as f:
with open(README_FILE, 'r', encoding='utf-8') as f:
README = f.read()
with open('HISTORY.rst', 'r', encoding='utf-8') as f:
HISTORY = f.read()

setup(
name='interpret-community',
Expand Down

0 comments on commit 8272cc6

Please sign in to comment.