-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace references to wiki with https://rez.readthedocs.io
Signed-off-by: Jean-Christophe Morin <[email protected]>
- Loading branch information
1 parent
b4e0953
commit e5f6364
Showing
5 changed files
with
10 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1 @@ | ||
## Installation Script | ||
|
||
To install rez, download the source. Then from the root directory, run: | ||
|
||
``` | ||
]$ python ./install.py | ||
``` | ||
|
||
This installs rez to `/opt/rez`. See `install.py -h` for how to install to a | ||
different location. | ||
|
||
Once the installation is complete, a message tells you how to run it: | ||
|
||
``` | ||
SUCCESS! To activate Rez, add the following path to $PATH: | ||
/opt/rez/bin/rez | ||
You may also want to source the completion script (for bash): | ||
source /opt/rez/completion/complete.sh | ||
``` | ||
|
||
> [[media/icons/warning.png]] Do _not_ move the installation - re-install to a new | ||
> location if you want to change the install path. If you want to install rez for | ||
> multiple operating systems, perform separate installs for each of those systems. | ||
|
||
## Installation Via Pip | ||
|
||
It is possible to install rez with pip, like so: | ||
|
||
``` | ||
]$ pip install rez | ||
``` | ||
|
||
However, this comes with a caveat - rez command line tools _are not guaranteed | ||
to work correctly_ once inside a rez environment (ie after using the `rez-env` | ||
command). The reasons are given in the next section. | ||
|
||
Pip installation is adequate however, if all you require is the rez API, or you | ||
don't require its command line tools to be available within a resolved environment. | ||
|
||
Note that running pip-installed rez command line tools will print a warning like so: | ||
|
||
``` | ||
Pip-based rez installation detected. Please be aware that rez command line tools | ||
are not guaranteed to function correctly in this case. See | ||
https://github.com/AcademySoftwareFoundation/rez/wiki/Installation#why-not-pip-for-production | ||
for futher details. | ||
``` | ||
|
||
|
||
## Why Not Pip For Production? | ||
|
||
Rez is not a normal python package. Although it can successfully be installed | ||
using standard mechanisms such as pip, this comes with a number of caveats. | ||
Specifically: | ||
|
||
* When within a rez environment (ie after using the `rez-env` command), the rez | ||
command line tools are not guaranteed to function correctly; | ||
* When within a rez environment, other packages' tools (that were also installed | ||
with pip) remain visible, but are not guaranteed to work. | ||
|
||
When you enter a rez environment, the rez packages in the resolve configure | ||
that environment as they see fit. For example, it is not uncommon for a python | ||
package to append to PYTHONPATH. Environment variables such as PYTHONPATH | ||
affect the behaviour of tools, including rez itself, and this can cause it to | ||
crash or behave abnormally. | ||
|
||
When you use the `install.py` script to install rez, some extra steps are taken | ||
to avoid this problem. Specifically: | ||
|
||
* Rez is installed into a virtualenv so that it operates standalone; | ||
* The rez tools are shebanged with `python -E`, in order to protect them from | ||
environment variables that affect python's behaviour; | ||
* The rez tools are stored in their own directory, so that other unrelated tools | ||
are not visible. | ||
|
||
Due to the way standard wheel-based python installations work, it simply is not | ||
possible to perform these extra steps without using a custom installation script. | ||
Wheels do not give the opportunity to run post-installation code; neither do | ||
they provide functionality for specifying interpreter arguments to be added for | ||
any given entry point. | ||
See https://rez.readthedocs.io/en/stable/installation.html for installation instructions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters