8000 install build in target environment by dholth · Pull Request #30 · dholth/conda-pupa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

install build in target environment #30

New issue

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

Merged
merged 2 commits into from
Mar 27, 2025
Merged

install build in target environment #30

merged 2 commits into from
Mar 27, 2025

Conversation

dholth
Copy link
Owner
@dholth dholth commented Mar 27, 2025

Fix #29

@dholth dholth requested a review from Copilot March 27, 2025 19:10
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses issue #29 by ensuring that missing build dependencies are correctly installed in the target environment. Key changes include:

  • Removal of the unused sys import in dependencies.py.
  • Addition of a custom MissingDependencyError exception and improved error handling in check_dependencies().
  • Introduction of a retry loop in build.py to ensure that build system requirements are installed before proceeding.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
conda_pupa/dependencies.py Introduced MissingDependencyError and refined exception handling for dependency checks.
conda_pupa/build.py Added a retry loop to recheck dependencies and automatically install missing ones.
Comments suppressed due to low confidence (2)

conda_pupa/dependencies.py:49

  • The condition checking for the 'ModuleNotFound' substring in e.stderr might be brittle if the error message format changes. Consider using a more specific error identifier or a robust parsing mechanism to reliably detect the missing dependency.
if ("ModuleNotFound" in e.stderr

conda_pupa/build.py:112

  • [nitpick] The retry loop does not log retry attempts, which could make troubleshooting dependency installation issues more challenging. Consider adding logging statements to indicate the retry progress and outcomes.
except dependencies.MissingDependencyError as e:

@dholth dholth merged commit 2364d99 into main Mar 27, 2025
3 checks passed
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.

Install build (python-build) in environment when missing
1 participant
0