A suite tool command line for rez.
Project description
rez-tools
A suite tool command line for rez.
This tool requires you to install rez in advance.
Installing
You can install via pip.
pip install rez-tools
or through clone from Github.
git clone https://github.com/loonghao/rez-tools.git
Install package.
cd rez-tools
python setup.py install
QuickStart
rez-tools
will find all tools via reztoolsconfig:tool_paths
.
> set REZ_TOOL_CONFIG=C:\Users\hao.long\PycharmProjects\rez-tools\examples\reztoolsconfig.py
> rt
rt
will dynamically generate a command line and bind it to the rt namespace
based on the content defined in the found .rt
file.
type rt
will list all tools found. like the below.
Usage: rt [OPTIONS] PLUGIN [PLUGIN OPTIONS]
Options:
-h, --help Show this message and exit.
Plugin Commands:
conan_python2 A rez plugin - conan_python2.
conan_python3 A rez plugin - conan_python3.
python Python3.
Tool Options:
rez-tools run other tools with their own options and argument patterns,
however, all tool has the following hidden options:
--ignore-cmd Ignore standard tool command when running the command,Remember
to provide an argument which will be used as the command to
run.Examples: rt conan --ignore-cmd python
--print Print plugin details and exit.
Define the suite description of rez-tool
The file format is .rt, the syntax is yaml
The following fields are now supported:
Key | required | description |
---|---|---|
name | no | The name of the tool, which will finally be registered in the command line. |
command | yes | The complete command line to be executed. |
requires | yes | The name of the rez package that the command line execution environment depends on |
Examples:
maya.rt
command: maya
requires:
- maya-2020
- maya_usd
- maya_mtoa
run command line
rt maya
cmake_gui.rt
command: cmke-gui
requeres:
- cmake
run command line
rt cmake_gui
python-2.rt
name: python_2
command: python
requeres:
- python-2.7
- pyside
- pyyaml
run command line
rt python_2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rez-tools-0.2.0.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for rez_tools-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747b37af9758caae119d1d39e30ffc453500601f8bfcc09b47a1f358b3de4b40 |
|
MD5 | 0eb95b2f3ead4da84c40a1fa5b7ac036 |
|
BLAKE2b-256 | ba8e607d4fc7b27aec2f2f4761df49ccc83f109a9a872c5f2f84ff85c7a26eda |