Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jermainewang committed Mar 30, 2020
1 parent 8b96f8b commit de14753
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ def get_lib_path():
exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo)
version = libinfo['__version__']
libs = []
optional = "bdist_wheel" in sys.argv or os.getenv('CONDA_BUILD')
optional = not ("bdist_wheel" in sys.argv or os.getenv('CONDA_BUILD'))
for libname in libinfo['LIBNAMES']:
lib_path = libinfo['find_lib_path'](libname, optional=optional)
libs.append(lib_path[0])
if lib_path is not None:
libs.append(lib_path[0])

return libs, version

Expand Down

0 comments on commit de14753

Please sign in to comment.