Skip to content

Commit

Permalink
Remove reqs from Linux, debug Mac builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Nov 4, 2018
1 parent dc921b3 commit 9b3942b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def download_and_install_wheel():
whl_url = RM_WHEELHOUSE + whl
dl_path = os.path.join(tmpwhl_dir, whl)
try:
print("Trying...", whl_url)
urlretrieve(whl_url, dl_path)
except BaseException:
print("FAILED")
continue
extract_dir = os.path.join(
tempfile.gettempdir(), whl.replace(
Expand All @@ -150,6 +152,7 @@ def download_and_install_wheel():
try:
zip_ref = zipfile.ZipFile(dl_path, 'r')
except BaseException:
print("FAILED")
continue
zip_ref.extractall(extract_dir)
for ewhl in glob(extract_dir + "/*/req_wheels/*.whl"):
Expand Down Expand Up @@ -489,10 +492,12 @@ def has_ext_modules(foo):
# The wheel shouldn't have any reqs
# since it gets packaged with all of its req wheels
reqs = []
else:
elif not any([a in sys.argv for a in ['-V']]):
reqs = parse_requirements('requirements.txt')
reqs.append('torch')
print("Adding requirements: ", reqs)
else:
reqs = []

setup(
name=PACKAGE_NAME,
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ('0', '2', '1')
__version_info__ = ('0', '1', '100')
__version__ = '.'.join(__version_info__)

0 comments on commit 9b3942b

Please sign in to comment.