Skip to content
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

Identify localised versus local packages #5

Open
mottosso opened this issue Jun 26, 2019 · 0 comments
Open

Identify localised versus local packages #5

mottosso opened this issue Jun 26, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@mottosso
Copy link
Owner

Once a package has been localised, it can be helpful to know whether or not a resolve contains it, or another package by the same name. Especially if your localised packages are intermixed with your development packages (i.e. REZ_LOCAL_PACKAGES_PATH).

rez env python
resolved by manima@toy, on Wed Jun 26 19:28:58 2019, using Rez v2.32.1

requested packages:
python
~platform==windows       (implicit)
~arch==AMD64             (implicit)
~os==windows-10.0.18362  (implicit)

resolved packages:
arch-AMD64        C:\Users\manima\packages\arch\AMD64                                (local)
platform-windows  C:\Users\manima\packages\platform\windows                          (local)
python-3.7.3      C:\Users\manima\packages\python\3.7.3\platform-windows\arch-AMD64  (localised)
> $

Implementation

Add a variable to packages as they become localised, e.g. localised = True. The attribute is then not preserved (or even respected) following a rez build of that same package and version. That way, you know whether a package is "original" and simply localised, or a development package. Something you're explicitly build yourself.

@mottosso mottosso added the enhancement New feature or request label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant