Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/generate_pdef.xml_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

def ensure_dependencies() -> None:
"""Check for and install required dependencies if they're missing."""
required_packages = ["lxml==6.0.2"]
required_packages = ["lxml==6.0.3"]

for package in required_packages:
if importlib.util.find_spec(package) is None:
Comment on lines +47 to 50
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

importlib.util.find_spec() expects an importable module name (e.g., lxml), not a pip requirement string (e.g., lxml==6.0.3). As written, this will always fail to find the spec and can repeatedly trigger installs even when lxml is present. Fix by checking find_spec('lxml'), and if you need to enforce the pinned version, separately compare importlib.metadata.version('lxml') against 6.0.3 before deciding to install.

Copilot uses AI. Check for mistakes.
Expand Down
Loading