Skip to content

Commit

Permalink
Merge pull request #50 from p-wysocki/flake8_errors
Browse files Browse the repository at this point in the history
Fix flake8 errors
  • Loading branch information
ilya-lavrenov authored Jul 25, 2022
2 parents 6ac2126 + ec6df41 commit 7b7f81b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bindings/python/wheel/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ def configure(self, install_cfg):
self.announce(f'Installing {comp}', level=3)
self.spawn(['cmake', '--install', CMAKE_BUILD_DIR, '--prefix', install_prefix, '--component', comp_data.get('name')])
# set rpath if applicable
if sys.platform != "win32" and comp_data.get("rpath"):
if sys.platform != 'win32' and comp_data.get('rpath'):
for path in filter(
lambda x: any(item in ([".so"] if sys.platform == "linux" else [".dylib", ".so"]) for item in x.suffixes), Path(install_dir).glob("*"),
lambda x: any(item in (['.so'] if sys.platform == 'linux' else ['.dylib', '.so']) for item in x.suffixes), Path(install_dir).glob('*'),
):
set_rpath(comp_data["rpath"], os.path.realpath(path))
set_rpath(comp_data['rpath'], os.path.realpath(path))

def generate_package(self, src_dirs):
"""
Expand Down

0 comments on commit 7b7f81b

Please sign in to comment.