Skip to content

Get a proper path to the python shared library for the QPD plugin #3012

Open
maliasadi wants to merge 4 commits into
mainfrom
fix_get_libpy_so_path
Open

Get a proper path to the python shared library for the QPD plugin #3012
maliasadi wants to merge 4 commits into
mainfrom
fix_get_libpy_so_path

Conversation

@maliasadi

@maliasadi maliasadi commented Jul 10, 2026

Copy link
Copy Markdown
Member

Context:
The current get_libpython_path() trusts LDLIBRARY, and if it finds nothing, then it returns an empty string. This causes the QPD plugin fails on envs when LDLIBRARY sets to the static archived python library instead of the shared one (e.g., on conda envs: LDLIBRARY = libpython3.14.a).

This PR fixes this with a minimal patch to get_libpython_path() that it now only accepts LDLIBRARY when it's actually a shared object, and otherwise falls back to the conventional libpython{LDVERSION}.so in LIBDIR, then a glob of libpython*.so*. This fixes the issues on conda envs while preserving the current behaviour on other envs.

Benefits:

  • Fix the QPD plugin on conda envs.

Possible Drawbacks:
n/a

Related GitHub Issues:

…d of the static archive when both are avaiable
@maliasadi maliasadi requested review from dime10 and kipawaa and removed request for dime10 July 10, 2026 20:15
@github-actions

Copy link
Copy Markdown
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md on your branch with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Comment thread frontend/catalyst/utils/runtime_environment.py Outdated
@maliasadi maliasadi added the author:build-wheels Run the wheel building workflows on this Pull Request label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:build-wheels Run the wheel building workflows on this Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants