Example:
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
import os | |
from rez.resolved_context import ResolvedContext | |
from rez.package_repository import package_repository_manager | |
os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
class Repo(object): |
This is a combined package, which cannot be built but simply copying python.py
into package repository.
And it will provide clean, re-usable virtual env that created from system installed python that it could find.
$ rez-search python
python-2.7-venv
python-3.6-venv
python-3.7-venv
python-3.8-venv
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 plugin was ported to python from C++, | |
All credits by Anno Schachner | |
original plugin is here https://github.com/wiremas/tension | |
''' | |
import sys | |
import maya.api.OpenMaya as om2 | |
import maya.OpenMaya as om |
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
import os | |
os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
def memory_repository(packages): | |
from rez.package_repository import package_repository_manager | |
repository = package_repository_manager.get_repository("memory@any") |
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
def patch(): | |
import hmac | |
import hashlib | |
from pymongo import auth | |
def _hi(hash_name, data, salt, iterations): | |
"""A simple implementation of PBKDF2-HMAC. | |
This is grabed from pymongo.auth module |
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
import os | |
os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
def memory_repository(packages): | |
from rez.package_repository import package_repository_manager | |
repository = package_repository_manager.get_repository("memory@any") |
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
import os | |
import sys | |
from rez.config import config as rezconfig | |
from allzpark import cli, allzparkconfig | |
os.environ["PATH"] += ";C:/Graphviz/bin" | |
# os.environ["ALLZPARK_NOTHREADING"] = "1" | |
os.environ["REZ_PACKAGES_PATH"] = os.pathsep.join([ | |
"memory@any", |
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
#!/bin/sh | |
# ---------------------------------------------------------------------- | |
# Copyright (C) 2005-2011 Karl J. Runge <runge at-sign karlrunge.com> | |
# All rights reserved. | |
# | |
# This file is part of Xdummy. | |
# | |
# Xdummy is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or (at |