AcademySoftwareFoundation / rez

An integrated package configuration, build and deployment system for software
https://rez.readthedocs.io
Apache License 2.0
940 stars 333 forks source link

rez pip reinstalls existing dependencies #1431

Open RoseAllenM opened 1 year ago

RoseAllenM commented 1 year ago

If I run rez pip --install repeatedly, some of the packages dependencies get reinstalled. For those packages, it’ll overwrite all of the files each time, but the package.py’s timestamp remains consistent.

--verbose reveals that rez pip thinks the requirements have changed: Changes: Changed attributes: ['requires']

Looks like get_distributions() is probably returning things in an ill-defined order based on a cache dict. https://github.com/AcademySoftwareFoundation/rez/blob/1ecc85f638d11d70ed78d4bd9c5cdc6f32ac58c4/src/rez/vendor/distlib/database.py#L200-L220

Environment

To Reproduce

dani-vr-metaphysic commented 2 weeks ago

Hi there! Just to confirm that I'm having the exactly the same problem.

Environment

To Reproduce