Skip to content

Commit f0f28f2

Browse files
Build System - Add missing build scripts for Maya 2025/2026.
1 parent a181cd8 commit f0f28f2

File tree

5 files changed

+175
-0
lines changed

5 files changed

+175
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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=2026
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"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@ECHO OFF
2+
::
3+
:: Copyright (C) 2021 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+
SET PROJECT_ROOT=%CD%
24+
25+
SET MAYA_VERSION=2026
26+
27+
:: Python executable - edit this to point to an explicit python executable file.
28+
SET PYTHON_EXE=python
29+
30+
SET PYTHON_VIRTUAL_ENV_DIR_NAME=python_venv_windows64_maya%MAYA_VERSION%
31+
CALL %PROJECT_ROOT%\scripts\internal\python_venv_activate.bat
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@ECHO OFF
2+
::
3+
:: Copyright (C) 2021 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+
:: Deactivates the Python development environment for mmSolver maya 2023.
22+
23+
SET PROJECT_ROOT=%CD%
24+
25+
SET MAYA_VERSION=2025
26+
27+
SET PYTHON_VIRTUAL_ENV_DIR_NAME=python_venv_windows64_maya%MAYA_VERSION%
28+
CALL %PROJECT_ROOT%\scripts\internal\python_venv_deactivate.bat
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@ECHO OFF
2+
::
3+
:: Copyright (C) 2021 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+
:: Deactivates the Python development environment for mmSolver maya 2023.
22+
23+
SET PROJECT_ROOT=%CD%
24+
25+
SET MAYA_VERSION=2026
26+
27+
SET PYTHON_VIRTUAL_ENV_DIR_NAME=python_venv_windows64_maya%MAYA_VERSION%
28+
CALL %PROJECT_ROOT%\scripts\internal\python_venv_deactivate.bat
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@ECHO OFF
2+
SETLOCAL
3+
::
4+
:: Copyright (C) 2024 David Cattermole.
5+
::
6+
:: This file is part of mmSolver.
7+
::
8+
:: mmSolver is free software: you can redistribute it and/or modify it
9+
:: under the terms of the GNU Lesser General Public License as
10+
:: published by the Free Software Foundation, either version 3 of the
11+
:: License, or (at your option) any later version.
12+
::
13+
:: mmSolver is distributed in the hope that it will be useful,
14+
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
:: GNU Lesser General Public License for more details.
17+
::
18+
:: You should have received a copy of the GNU Lesser General Public License
19+
:: along with mmSolver. If not, see <https://www.gnu.org/licenses/>.
20+
:: ---------------------------------------------------------------------
21+
::
22+
:: Runs tests via the Maya Python Interpreter.
23+
::
24+
:: NOTE: This file is intended as a short-cut rather than having to
25+
:: find and type the full path to 'mayapy.exe' on Windows. On Linux,
26+
:: `mayapy` should be set for your environment (assuming you have an
27+
:: environment managed).
28+
29+
30+
:: The root of this project.
31+
SET PROJECT_ROOT=%CD%
32+
ECHO Project Root: %PROJECT_ROOT%
33+
34+
:: Path to Maya Python interpreter.
35+
SET MAYA_EXE="%PROGRAMFILES%\Autodesk\Maya2026\bin\mayapy.exe"
36+
37+
:: Run tests.
38+
%MAYA_EXE% %PROJECT_ROOT%\tests\runTests.py %*
39+
if errorlevel 1 goto tests_failed
40+
41+
:: Successful return.
42+
exit /b 0
43+
44+
:tests_failed
45+
echo mmSolver tests failed!
46+
exit /b 1

0 commit comments

Comments
 (0)