<commit_before># -*- coding: utf-8 -*-

name = "cgru"

version = "2.3.1"

author = [
    "<NAME>",
]

uuid = "3e38a9bf0e364a2995ecacfa30bd4811"

description = "CGRU/Afanasy Package"


variants = [
    ["platform-linux", "maya"],
    ["platform-linux", "houdini"],
    ["platform-linux", "blender"],
]

build_command = "python {root}/../build.py {install}"


def commands():
    import os

    # Various applications uses own python:
    unsetenv("PYTHONHOME")

    # Set CGRU root:
    env.CGRU_LOCATION.set("/opt/cgru-{}.{}.{}".format(
        env.REZ_CGRU_MAJOR_VERSION,
        env.REZ_CGRU_MINOR_VERSION,
        env.REZ_CGRU_PATCH_VERSION,
    ))

    # Add CGRU bin to path:
    env.PATH.prepend("${CGRU_LOCATION}/bin")

    # Add software to PATH:
    env.PATH.prepend("${CGRU_LOCATION}/software_setup/bin")<commit_msg>* [Rez] Simplified ``cgru`` package variants.<commit_after># -*- coding: utf-8 -*-

name = "cgru"

version = "2.3.1"

author = [
    "<NAME>",
]

uuid = "3e38a9bf0e364a2995ecacfa30bd4811"

description = "CGRU/Afanasy Package"


variants = [
    ["maya"],
    ["houdini"],
    ["blender"],
]

build_command = "python {root}/../build.py {install}"


def commands():
    import os

    # Various applications uses own python:
    unsetenv("PYTHONHOME")

    # Set CGRU root:
    env.CGRU_LOCATION.set("/opt/cgru-{}.{}.{}".format(
        env.REZ_CGRU_MAJOR_VERSION,
        env.REZ_CGRU_MINOR_VERSION,
        env.REZ_CGRU_PATCH_VERSION,
    ))

    # Add CGRU bin to path:
    env.PATH.prepend("${CGRU_LOCATION}/bin")

    # Add software to PATH:
    env.PATH.prepend("${CGRU_LOCATION}/software_setup/bin")
{'fraction_non_alphanumeric': 0.16809815950920245, 'fraction_numerical': 0.026993865030674847, 'mean_word_length': 3.1083123425692696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6425665', 'n_tokens_mistral': 678, 'n_tokens_neox': 644, 'n_words': 107}