Skip to content

Commit

Permalink
Merge pull request #7069 from adisbladis/include-dir-type-confusion
Browse files Browse the repository at this point in the history
Fixed type handling for include and lib directories
  • Loading branch information
radarhere committed Apr 11, 2023
2 parents 51fbc9c + 6fce7d6 commit 0ec0a89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,13 @@ def build_extensions(self):
lib_root = include_root = root

if lib_root is not None:
if not isinstance(lib_root, (tuple, list)):
lib_root = (lib_root,)
for lib_dir in lib_root:
_add_directory(library_dirs, lib_dir)
if include_root is not None:
if not isinstance(include_root, (tuple, list)):
include_root = (include_root,)
for include_dir in include_root:
_add_directory(include_dirs, include_dir)

Expand Down

0 comments on commit 0ec0a89

Please sign in to comment.