We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/share/pkgconfig is widely used pkgconfig dir as well.
Not sure how to submit PR, but here is some code that searches other directories.
class PkgConfigEnvironment(EnvironmentExtensionPoint): """ Extend the environment variable PKG_CONFIG_PATH. A package needs to provide the file 'lib/pkgconfig/<pkgname>.pc' to extend the environment variable. """ def __init__(self): # noqa: D107 super().__init__() satisfies_version( EnvironmentExtensionPoint.EXTENSION_POINT_VERSION, '^1.0') def create_environment_hooks(self, prefix_path, pkg_name): # noqa: D102 subdirectory = self._get_pc_subdir(prefix_path, pkg_name) if subdirectory is not None: return create_environment_hook( 'pkg_config', prefix_path, pkg_name, 'PKG_CONFIG_PATH', str(subdirectory), mode='prepend') return [] def _get_pc_subdir(self, prefix_path, pkg_name): subdirectories = [Path('lib') / 'pkgconfig', Path('share') / 'pkgconfig'] for subdirectory in subdirectories: pkg_config_file = prefix_path / subdirectory / (pkg_name + '.pc') logger.log(1, "checking '%s'" % pkg_config_file) if pkg_config_file.is_file(): return subdirectory return None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/share/pkgconfig is widely used pkgconfig dir as well.
Not sure how to submit PR, but here is some code that searches other directories.
The text was updated successfully, but these errors were encountered: