From 5e4d7044cf9d590b1ebb397ce62aefbb3d8ebbed Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 22 Feb 2024 12:22:46 +0100 Subject: [PATCH] Set PYTHONPATH to an empty variable for all tasks to avoid cross-talking with ROS apt packages (#263) * Set PYTHONPATH to an empty variable for all tasks to avoid cross-talking with ROS apt packages * Add the activation.scripts to clear PYTHONPATH var * Revert commit 80b7944d * Update clean_env.sh * Update pixi.toml --------- Co-authored-by: Martina Gloria --- clean_env.sh | 2 ++ pixi.toml | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 clean_env.sh diff --git a/clean_env.sh b/clean_env.sh new file mode 100644 index 0000000..638832e --- /dev/null +++ b/clean_env.sh @@ -0,0 +1,2 @@ +export PYTHONPATH= +export PYTHONUSERBASE=disabled_by_wrong_value diff --git a/pixi.toml b/pixi.toml index bc389d3..764e90d 100644 --- a/pixi.toml +++ b/pixi.toml @@ -8,6 +8,10 @@ authors = ["Silvio Traversaro "] channels = ["conda-forge"] platforms = ["linux-64", "linux-aarch64", "win-64", "osx-arm64", "osx-64"] +[activation] +# Workaround for https://github.com/prefix-dev/pixi/issues/826 +scripts = ["clean_env.sh"] + [tasks] # As of pixi 0.13.0, pixi does not support git pip packages, so we install it from source # Specific commit of urdfdom_py is a workaround for https://github.com/robotology/simmechanics-to-urdf/issues/36