Skip to content

Commit

Permalink
(fix) update_pkgconfig fails when path is None
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Mar 19, 2024
1 parent ea8ca97 commit c1917e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup_tools/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def define_secp256k1_local_lib_info():
return LIB_NAME, 'x_lib'


def update_pkg_config_path(path='.'):
def update_pkg_config_path(path=None):
"""Updates the PKG_CONFIG_PATH environment variable to include the given path."""
pkg_config_paths = [path, os.getenv('PKG_CONFIG_PATH', '').strip('"')]

Expand All @@ -140,7 +140,7 @@ def update_pkg_config_path(path='.'):
pkg_config_paths.append(os.path.join(lbd, 'pkgconfig'))

# Update environment
os.environ['PKG_CONFIG_PATH'] = os.pathsep.join(pkg_config_paths)
os.environ['PKG_CONFIG_PATH'] = os.pathsep.join([p for p in pkg_config_paths if p is not None])


def verify_system_lib(lib_dir):
Expand Down

0 comments on commit c1917e1

Please sign in to comment.