From 933a97a519c95e5c99dd3db5efd48db309211416 Mon Sep 17 00:00:00 2001 From: dzavada Date: Sat, 18 Jan 2025 15:42:08 -0800 Subject: [PATCH 1/4] Added Houdini 20.5 conda recipe --- conda_recipes/Houdini-20.5/README.md | 0 .../Houdini-20.5/deadline-cloud.yaml | 9 ++ conda_recipes/Houdini-20.5/recipe/build.sh | 95 +++++++++++++++++++ conda_recipes/Houdini-20.5/recipe/meta.yaml | 40 ++++++++ 4 files changed, 144 insertions(+) create mode 100644 conda_recipes/Houdini-20.5/README.md create mode 100644 conda_recipes/Houdini-20.5/deadline-cloud.yaml create mode 100644 conda_recipes/Houdini-20.5/recipe/build.sh create mode 100644 conda_recipes/Houdini-20.5/recipe/meta.yaml diff --git a/conda_recipes/Houdini-20.5/README.md b/conda_recipes/Houdini-20.5/README.md new file mode 100644 index 0000000..e69de29 diff --git a/conda_recipes/Houdini-20.5/deadline-cloud.yaml b/conda_recipes/Houdini-20.5/deadline-cloud.yaml new file mode 100644 index 0000000..a3a038a --- /dev/null +++ b/conda_recipes/Houdini-20.5/deadline-cloud.yaml @@ -0,0 +1,9 @@ +# @Author: Your name +# @Date: 2024-09-05 10:19:18 +# @Last Modified by: Your name +# @Last Modified time: 2024-09-05 12:18:26 +condaPlatforms: + - platform: linux-64 + defaultSubmit: true + sourceArchiveFilename: houdini-20.5.332-linux_x86_64_gcc11.2.tar.gz + diff --git a/conda_recipes/Houdini-20.5/recipe/build.sh b/conda_recipes/Houdini-20.5/recipe/build.sh new file mode 100644 index 0000000..e92b13a --- /dev/null +++ b/conda_recipes/Houdini-20.5/recipe/build.sh @@ -0,0 +1,95 @@ +#!/bin/bash +# @Author: Your name +# @Date: 2024-09-05 10:14:54 +# @Last Modified by: Your name +# @Last Modified time: 2024-10-08 08:02:40 +#!/bin/sh +set -xeuo pipefail + +mkdir -p $PREFIX/opt +cd $PREFIX/opt + + +# The Houdini installer expects `bc` to run, but does not fail when +# it is missing. Ensure that it is installed before running the installer +bc --help +# Example messages: + +# Install Houdini +INSTALLER=$SRC_DIR/installer/houdini.install +# date of the EULA agreement, not the current date +EULAdate=2021-10-13 +$INSTALLER \ + --auto-install \ + --accept-EULA $EULAdate \ + --no-install-engine-maya \ + --no-install-engine-unity \ + --no-install-menus \ + --no-install-bin-symlink \ + --no-install-hfs-symlink \ + --no-install-license \ + --no-install-hqueue-server \ + --no-root-check \ + --make-dir $PREFIX/opt/houdini + +HOUDINI_DIR=$PREFIX/opt/houdini +# The Houdini version without the build number +HOUDINI_VERSION=${PKG_VERSION%.*} + +# Remove the documentation, it's not needed on the farm +rm -r $HOUDINI_DIR/houdini/help + +# Create symlinks +mkdir -p $PREFIX/bin +for BINARY in houdini houdini-bin houdinicore houdinifx \ + hscript hython hbatch karma karma_cc mantra mantra-bin \ + vmantra vmantra-bin; do +ln -r -s $HOUDINI_DIR/bin/$BINARY $PREFIX/bin/$BINARY +done + +# Install Houdini dependencies from local package manager +mkdir -p $SRC_DIR/download +cd $SRC_DIR/download +dnf download --resolve -y alsa-lib fontconfig libXScrnSaver libX* libGL libXcomposite libxkbcommon + +# Install python deadline package +pip install deadline-cloud-for-houdini + + +for rpm_file in $(realpath $SRC_DIR/download/*.rpm); do + rpm2cpio "$rpm_file" | cpio -idm +done + +# Copy .so's to Houdini installation +for so_file in $(find . -iname "*.so.*"); do + cp $so_file $HOUDINI_DIR/dsolib/. +done + +# Script to set environment variables during activation +mkdir -p $PREFIX/etc/conda/activate.d +cat < $PREFIX/etc/conda/activate.d/houdini-$PKG_VERSION-vars.sh +export "HOUDINI_LOCATION=\$CONDA_PREFIX/opt/houdini" +export "HOUDINI_VERSION=$HOUDINI_VERSION" +export "HOUDINI_BINARY_PATH=\$HOUDINI_LOCATION/bin" +export "HOUDINI_HOUDINI_PATH=\$HOUDINI_LOCATION/houdini" +export "HOUDINI_INCLUDE_PATH=\$HOUDINI_LOCATION/toolkit/include" +export "HOUDINI_LIBRARY_PATH=\$HOUDINI_LOCATION/bin" +export "HB=\$HOUDINI_LOCATION/dsolib" +export "LD_LIBRARY_PATH=\$HOUDINI_LOCATION/dsolib" +export "SESI_LMHOST=localhost" + +EOF + +mkdir -p $PREFIX/etc/conda/deactivate.d +cat < $PREFIX/etc/conda/deactivate.d/houdini-$PKG_VERSION-vars.sh +unset HOUDINI_LIBRARY_PATH +unset HOUDINI_INCLUDE_PATH +unset HOUDINI_HOUDINI_PATH +unset HOUDINI_BINARY_PATH +unset HOUDINI_VERSION +unset HOUDINI_LOCATION +unset LD_LIBRARY_PATH +unset HB +unset SESI_LMHOST + +EOF diff --git a/conda_recipes/Houdini-20.5/recipe/meta.yaml b/conda_recipes/Houdini-20.5/recipe/meta.yaml new file mode 100644 index 0000000..fcb7481 --- /dev/null +++ b/conda_recipes/Houdini-20.5/recipe/meta.yaml @@ -0,0 +1,40 @@ +# @Author: Derek Zavada +# @Date: 2024-09-05 13:35:23 +# @Last Modified by: Your name +# @Last Modified time: 2024-09-11 16:02:25 +{% set name = "houdini" %} +{% set version_partial = "20.5" %} +{% set version_minor = "332" %} +{% set version = version_partial + "." + version_minor %} + +{% set bucket_name = "houdinihive-bucket-deadlinecloud" %} + +{% set sha256 = "66a6cb0967cf528d1f5d2f6588a397b141299b577ad1b1c891bc7e2bdf2016d5" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: s3://{{ bucket_name }}/houdini/{{ version_partial }}/houdini-{{ version_partial }}.{{ version_minor }}-linux_x86_64_gcc11.2.tar.gz + sha256: {{ sha256 }} + folder: installer + +build: + number: 0 + binary_relocation: False + detect_binary_files_with_prefix: False + # The binary is built to be relocatable, so can ignore the warnings about DSOs. + missing_dso_whitelist: + - "*" +# overlinking_ignore_patterns: +# - "**" + +#test: +# commands: +# - houdini -h + +about: + home: https://www.sidefx.com/products/houdini/ + license: Commercial + summary: Houdini is built from the ground up to be a procedural system that empowers artists to work freely, create multiple iterations and rapidly share workflows with colleagues. From 028dc761b7e7a837b95f22557dd8fe1e0cd6596b Mon Sep 17 00:00:00 2001 From: dzavada Date: Thu, 23 Jan 2025 11:50:13 -0800 Subject: [PATCH 2/4] Fixed formatting issues --- conda_recipes/Houdini-20.5/deadline-cloud.yaml | 4 ---- conda_recipes/Houdini-20.5/recipe/build.sh | 5 ----- conda_recipes/Houdini-20.5/recipe/meta.yaml | 4 ---- 3 files changed, 13 deletions(-) diff --git a/conda_recipes/Houdini-20.5/deadline-cloud.yaml b/conda_recipes/Houdini-20.5/deadline-cloud.yaml index a3a038a..96b591a 100644 --- a/conda_recipes/Houdini-20.5/deadline-cloud.yaml +++ b/conda_recipes/Houdini-20.5/deadline-cloud.yaml @@ -1,7 +1,3 @@ -# @Author: Your name -# @Date: 2024-09-05 10:19:18 -# @Last Modified by: Your name -# @Last Modified time: 2024-09-05 12:18:26 condaPlatforms: - platform: linux-64 defaultSubmit: true diff --git a/conda_recipes/Houdini-20.5/recipe/build.sh b/conda_recipes/Houdini-20.5/recipe/build.sh index e92b13a..6deb22f 100644 --- a/conda_recipes/Houdini-20.5/recipe/build.sh +++ b/conda_recipes/Houdini-20.5/recipe/build.sh @@ -1,8 +1,3 @@ -#!/bin/bash -# @Author: Your name -# @Date: 2024-09-05 10:14:54 -# @Last Modified by: Your name -# @Last Modified time: 2024-10-08 08:02:40 #!/bin/sh set -xeuo pipefail diff --git a/conda_recipes/Houdini-20.5/recipe/meta.yaml b/conda_recipes/Houdini-20.5/recipe/meta.yaml index fcb7481..62f623a 100644 --- a/conda_recipes/Houdini-20.5/recipe/meta.yaml +++ b/conda_recipes/Houdini-20.5/recipe/meta.yaml @@ -1,7 +1,3 @@ -# @Author: Derek Zavada -# @Date: 2024-09-05 13:35:23 -# @Last Modified by: Your name -# @Last Modified time: 2024-09-11 16:02:25 {% set name = "houdini" %} {% set version_partial = "20.5" %} {% set version_minor = "332" %} From 4520d244cb664fc19ad6666478f40cab381413ee Mon Sep 17 00:00:00 2001 From: Derek Zavada Date: Thu, 23 Jan 2025 11:56:02 -0800 Subject: [PATCH 3/4] Fixed formatting issues --- conda_recipes/{Houdini-20.5 => houdini-20.5}/README.md | 0 conda_recipes/{Houdini-20.5 => houdini-20.5}/deadline-cloud.yaml | 0 conda_recipes/{Houdini-20.5 => houdini-20.5}/recipe/build.sh | 0 conda_recipes/{Houdini-20.5 => houdini-20.5}/recipe/meta.yaml | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename conda_recipes/{Houdini-20.5 => houdini-20.5}/README.md (100%) rename conda_recipes/{Houdini-20.5 => houdini-20.5}/deadline-cloud.yaml (100%) rename conda_recipes/{Houdini-20.5 => houdini-20.5}/recipe/build.sh (100%) rename conda_recipes/{Houdini-20.5 => houdini-20.5}/recipe/meta.yaml (100%) diff --git a/conda_recipes/Houdini-20.5/README.md b/conda_recipes/houdini-20.5/README.md similarity index 100% rename from conda_recipes/Houdini-20.5/README.md rename to conda_recipes/houdini-20.5/README.md diff --git a/conda_recipes/Houdini-20.5/deadline-cloud.yaml b/conda_recipes/houdini-20.5/deadline-cloud.yaml similarity index 100% rename from conda_recipes/Houdini-20.5/deadline-cloud.yaml rename to conda_recipes/houdini-20.5/deadline-cloud.yaml diff --git a/conda_recipes/Houdini-20.5/recipe/build.sh b/conda_recipes/houdini-20.5/recipe/build.sh similarity index 100% rename from conda_recipes/Houdini-20.5/recipe/build.sh rename to conda_recipes/houdini-20.5/recipe/build.sh diff --git a/conda_recipes/Houdini-20.5/recipe/meta.yaml b/conda_recipes/houdini-20.5/recipe/meta.yaml similarity index 100% rename from conda_recipes/Houdini-20.5/recipe/meta.yaml rename to conda_recipes/houdini-20.5/recipe/meta.yaml From 94370155f55db56a6b536050c74000c3c87efa81 Mon Sep 17 00:00:00 2001 From: Derek Zavada Date: Thu, 23 Jan 2025 12:02:47 -0800 Subject: [PATCH 4/4] remove # Example messages --- conda_recipes/houdini-20.5/recipe/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_recipes/houdini-20.5/recipe/build.sh b/conda_recipes/houdini-20.5/recipe/build.sh index 6deb22f..a0d83fe 100644 --- a/conda_recipes/houdini-20.5/recipe/build.sh +++ b/conda_recipes/houdini-20.5/recipe/build.sh @@ -8,7 +8,7 @@ cd $PREFIX/opt # The Houdini installer expects `bc` to run, but does not fail when # it is missing. Ensure that it is installed before running the installer bc --help -# Example messages: + # Install Houdini INSTALLER=$SRC_DIR/installer/houdini.install