From db238d29c524e59ec520a08a26d65ccddfccb4d8 Mon Sep 17 00:00:00 2001 From: Andrew Fenton Date: Thu, 13 Aug 2026 00:44:01 +0000 Subject: [PATCH 1/2] fix(maya-2027): make mayapy load Maya's own libpython Signed-off-by: Andrew Fenton --- conda_recipes/maya-2027/recipe/build.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/conda_recipes/maya-2027/recipe/build.sh b/conda_recipes/maya-2027/recipe/build.sh index b68300d2..76433725 100644 --- a/conda_recipes/maya-2027/recipe/build.sh +++ b/conda_recipes/maya-2027/recipe/build.sh @@ -85,9 +85,23 @@ mkdir -p $PREFIX/bin ln -r -s $PREFIX/$MAYA_ROOT/bin/maya$MAYA_VERSION $PREFIX/bin/maya$MAYA_VERSION ln -r -s $PREFIX/$MAYA_ROOT/bin/maya$MAYA_VERSION $PREFIX/bin/maya ln -r -s $PREFIX/$MAYA_ROOT/bin/mayapy.bin $PREFIX/bin/mayapy.bin -ln -r -s $PREFIX/$MAYA_ROOT/bin/mayapy $PREFIX/bin/mayapy ln -r -s $PREFIX/$MAYA_ROOT/bin/Render $PREFIX/bin/Render +# Expose mayapy through a wrapper script instead of a symlink. +# +# Autodesk's bin/mayapy looks for Maya's libraries in ../lib relative to the directory it +# was invoked from, so exec'ing a symlink in $PREFIX/bin sends the lookup to $PREFIX/lib, +# where mayapy can silently load another package's libpython3.13 (the maya-openjd adaptor +# stack installs one) and crash. Exec'ing the real path keeps the lookup inside the +# installation. +# +# Do not revert to a symlink. bin/maya and bin/Render resolve symlinks themselves. +cat > $PREFIX/bin/mayapy < Date: Thu, 13 Aug 2026 17:30:56 +0000 Subject: [PATCH 2/2] chore(maya): remove confusing comment Signed-off-by: Andrew Fenton --- conda_recipes/maya-2027/recipe/build.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/conda_recipes/maya-2027/recipe/build.sh b/conda_recipes/maya-2027/recipe/build.sh index 76433725..0bec9190 100644 --- a/conda_recipes/maya-2027/recipe/build.sh +++ b/conda_recipes/maya-2027/recipe/build.sh @@ -94,8 +94,6 @@ ln -r -s $PREFIX/$MAYA_ROOT/bin/Render $PREFIX/bin/Render # where mayapy can silently load another package's libpython3.13 (the maya-openjd adaptor # stack installs one) and crash. Exec'ing the real path keeps the lookup inside the # installation. -# -# Do not revert to a symlink. bin/maya and bin/Render resolve symlinks themselves. cat > $PREFIX/bin/mayapy <