Skip to content

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

Merged
maliasadi merged 5 commits into
mainfrom
fix_get_libpy_so_path
Jul 13, 2026
Merged

Get a proper path to the python shared library for the QPD plugin #3012
maliasadi merged 5 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. 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:
[sc-124573]

…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

@kipawaa kipawaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @maliasadi !

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.99%. Comparing base (33f3857) to head (418f8a3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3012      +/-   ##
==========================================
- Coverage   97.23%   96.99%   -0.24%     
==========================================
  Files          39      167     +128     
  Lines        4481    19436   +14955     
  Branches        0     1816    +1816     
==========================================
+ Hits         4357    18852   +14495     
- Misses        124      430     +306     
- Partials        0      154     +154     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maliasadi maliasadi removed the author:build-wheels Run the wheel building workflows on this Pull Request label Jul 13, 2026
@maliasadi
maliasadi merged commit 48f07bb into main Jul 13, 2026
50 checks passed
@maliasadi
maliasadi deleted the fix_get_libpy_so_path branch July 13, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants