]$ rez-bind --quickstart Binding platform into /home/ajohns/packages... Binding arch into /home/ajohns/packages... Binding os into /home/ajohns/packages... Binding python into /home/ajohns/packages... Binding rez into /home/ajohns/packages... Binding rezgui into /home/ajohns/packages... Binding setuptools into /home/ajohns/packages... Binding pip into /home/ajohns/packages...
Successfully converted the following software found on the current system into Rez packages:
PACKAGE URI ------- --- arch /home/ajohns/packages/arch/x86_64/package.py os /home/ajohns/packages/os/osx-10.11.5/package.py pip /home/ajohns/packages/pip/8.0.2/package.py platform /home/ajohns/packages/platform/osx/package.py python /home/ajohns/packages/python/2.7.11/package.py rez /home/ajohns/packages/rez/2.0.rc1.44/package.py rezgui /home/ajohns/packages/rezgui/2.0.rc1.44/package.py setuptools /home/ajohns/packages/setuptools/19.4/package.py
现在你应该可以创建一个包含Python的环境:
1 2
]$ rez-env python -- which python /home/ajohns/packages/python-2.7.8/platform-linux/arch-x86_64/os-Ubuntu-12.04/bin/python
]$ cd example_packages/hello_world ]$ rez-build --install
-------------------------------------------------------------------------------- Building hello_world-1.0.0... -------------------------------------------------------------------------------- Resolving build environment: python resolved by ajohns@workstation.local, on Sun Jul 31 14:39:33 2016, using Rez v2.0.rc1.44
Invoking cmake build system... Executing: /usr/local/bin/cmake -d /home/ajohns/workspace/rez/example_packages/hello_world -Wno-dev -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -D_ECLIPSE_VERSION=4.3 --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX=/home/ajohns/packages/hello_world/1.0.0 -DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} -DCMAKE_BUILD_TYPE=Release -DREZ_BUILD_TYPE=local -DREZ_BUILD_INSTALL=1 -G Unix Makefiles Not searching for unused variables given on the command line. -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /home/ajohns/workspace/rez/example_packages/hello_world/build
Executing: make -j4 [100%] Built target py
Executing: make -j4 install [100%] Built target py Install the project... -- Install configuration: "Release" -- Installing: /home/ajohns/packages/hello_world/1.0.0/./python/hello_world.py -- Installing: /home/ajohns/packages/hello_world/1.0.0/./python/hello_world.pyc -- Installing: /home/ajohns/packages/hello_world/1.0.0/./bin/hello