Skip to content
Prev Previous commit
Next Next commit
setup.py: do not search for shared boost libraries in mason build
  • Loading branch information
lightmare committed Aug 21, 2019
commit c2c66e0c2699ca7608f4ffe1c8638f9fe01086e1
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def get_boost_library_names():
found = []
missing = []
for _id in wanted:
name = os.environ.get("%s_LIB" % _id.upper(), find_boost_library(_id))
name = os.environ.get("%s_LIB" % _id.upper())
if name is None:
name = _id if mason_build else find_boost_library(_id)
if name:
found.append(name)
else:
Expand All @@ -79,7 +81,9 @@ def finalize_options(self):
pass

def run(self):
print("\n".join(get_boost_library_names()))
print("Found boost libraries:")
for lib in get_boost_library_names():
print("\t" + lib)


cflags = sysconfig.get_config_var('CFLAGS')
Expand Down