Skip to content

Order pip requirements when converting to keep a constant hash#1832

Open
samson-jerome wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
samson-jerome:fix_order_requires_from_pip_distribution
Open

Order pip requirements when converting to keep a constant hash#1832
samson-jerome wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
samson-jerome:fix_order_requires_from_pip_distribution

Conversation

@samson-jerome
Copy link
Contributor

When using rez pip, the order of requirements collected from distributions may vary. This eventually changes the variants hash generated which leads to reinstalling a package already installed (with a different hash but identical requirements).

closes: #1414

Signed-off-by: Jer <samson-jerome@users.noreply.github.com>
@samson-jerome samson-jerome requested a review from a team as a code owner September 24, 2024 11:59
@codecov
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.52%. Comparing base (8476696) to head (41856af).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/rez/utils/pip.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1832   +/-   ##
=======================================
  Coverage   58.52%   58.52%           
=======================================
  Files         126      126           
  Lines       17207    17207           
  Branches     3519     3519           
=======================================
  Hits        10070    10070           
  Misses       6468     6468           
  Partials      669      669           

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

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.

rez-pip does not create variants with a consistent order, potentially causing duplicates.

1 participant