Package localisation for Rez.
See also
Prerequisities
rez-2.29+
python-2.7,<4
Used as a Rez package.
$ git clone https://github.com/mottosso/rez-localz.git
$ cd rez-localz
$ rez build --install
Once installed, you can start localising packages like this.
$ rez env localz -- localise Qt.py
This will localise the Qt.py package onto your config.local_packages_path
.
Localise multiple packages at once, that all resolve to one another making sure they work together.
$ rez env localz -- localise maya-2018 arnold flex
Localise an entire context with the --full
flag.
$ rez env localz -- localise maya alita gitlab --full
Localise one package resolved with another.
$ rez env localz -- localise maya --requires alita
In this case, if alita
carries a requirement for maya-2018
then that's the version being localised, despite maya-2017
and maya-2019
also being available.
The syntax to localise
is the same as for rez env
, including complex version queries.
$ rez env localz -- localise "maya-2015,<2020"
localise
uses rez cp
under the hood and can be considered high-level version of it, taking more variables into account like context and other packages.