Commit 73a11579 authored by André Anjos's avatar André Anjos 💬
Browse files

Allow dependent packages to compile using an interpreter with an older version of Bob pre-installed

parent 20d91c8a
......@@ -181,7 +181,9 @@ def get_bob_libraries(bob_packages):
# TODO: need to handle versions?
bob_packages = normalize_requirements([k.strip().lower() for k in bob_packages])
for package in bob_packages:
includes.append(resource_filename(package, 'include'))
location = pkg_resources.require(package)[0].location
include_path = [location] + package.split('.') + ['include']
lib_name = package.replace('.', '_')
libs = find_library(lib_name, prefixes=[resource_filename(package, '.')])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment