-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv install still doing full lock resolution #6267
Comments
Analysis for Issue #6267: Analysis of Pipenv Issue #62671. Problem Summary: The issue describes a performance regression in Pipenv 2024.0.0, where the 2. Comment Discussion Analysis: The comments reveal two key points:
3. Proposed Resolution: The goal is to leverage the existing upgrade logic for single-package installations to avoid unnecessary full resolution. Code Changes:
Current Code: (Simplified) def do_install(
project,
packages=False,
editable_packages=False,
# ... other parameters
):
# ... existing code ...
if not packages and not editable_packages:
# Perform full lock resolution
do_init(project, ...)
else:
# Add packages to Pipfile
# ... (Existing code) ...
# Perform full lock resolution
do_init(project, ...)
# ... existing code ... Proposed Code: def do_install(
project,
# ... existing parameters
packages=None,
editable_packages=None,
# ...
):
# ... existing code ...
if not packages and not editable_packages:
# Perform full lock resolution
do_init(project, ...)
else:
# Add packages to Pipfile
# ... (Existing code) ...
# Utilize the upgrade logic for targeted resolution
from pipenv.routines.update import upgrade
upgrade(project, packages=packages, editable_packages=editable_packages, ...)
# ... existing code ... 4. Code Snippet: The code snippet is included in the "Proposed Code" section. 5. Additional Steps/Investigations:
Impact on Pipenv:
By implementing the suggested changes and conducting thorough testing, Pipenv can regain the efficiency it lost in version 2024.0.0 while maintaining accuracy and consistency in dependency management. ================================================== |
fyi -- Testing out some Gen AI code analysis of recent issues |
In pipenv 2024.0.0 we made changes to install path, and my assumption was it would behave more like the
upgrade
path, but I saw first hand today its re-locking everything.The text was updated successfully, but these errors were encountered: