|
| 1 | +#!/bin/bash |
| 2 | +# |
| 3 | +# Copyright (C) 2022 David Cattermole. |
| 4 | +# |
| 5 | +# This file is part of mmSolver. |
| 6 | +# |
| 7 | +# mmSolver is free software: you can redistribute it and/or modify it |
| 8 | +# under the terms of the GNU Lesser General Public License as |
| 9 | +# published by the Free Software Foundation, either version 3 of the |
| 10 | +# License, or (at your option) any later version. |
| 11 | +# |
| 12 | +# mmSolver is distributed in the hope that it will be useful, |
| 13 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | +# GNU Lesser General Public License for more details. |
| 16 | +# |
| 17 | +# You should have received a copy of the GNU Lesser General Public License |
| 18 | +# along with mmSolver. If not, see <https://www.gnu.org/licenses/>. |
| 19 | +# --------------------------------------------------------------------- |
| 20 | +# |
| 21 | +# Activates the Python development environment for Maya 2025. |
| 22 | +# |
| 23 | +# This script should be sourced, NOT called, for example: |
| 24 | +# $ source scripts/python_venv_activate_maya2025.bash |
| 25 | +# |
| 26 | + |
| 27 | +# The -e flag causes the script to exit as soon as one command returns |
| 28 | +# a non-zero exit code. |
| 29 | +set -ev |
| 30 | + |
| 31 | +PROJECT_ROOT=`pwd` |
| 32 | + |
| 33 | +MAYA_VERSION=2025 |
| 34 | + |
| 35 | +# Python executable - edit this to point to an explicit python executable file. |
| 36 | +# |
| 37 | +# RockyLinux8 has Python 3.6 by default, but we use Python 3.9 because |
| 38 | +# it has better support for tools like 'ruff'. |
| 39 | +PYTHON_EXE=python3.9 |
| 40 | + |
| 41 | +PYTHON_VIRTUAL_ENV_DIR_NAME="python_venv_linux_maya${MAYA_VERSION}" |
| 42 | +source "${PROJECT_ROOT}/scripts/internal/python_venv_activate.bash" |
0 commit comments