Skip to content

Commit

Permalink
Set PYTHONPATH to an empty variable for all tasks to avoid cross-talk…
Browse files Browse the repository at this point in the history
…ing 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 80b7944

* Update clean_env.sh

* Update pixi.toml

---------

Co-authored-by: Martina Gloria <[email protected]>
  • Loading branch information
traversaro and martinaxgloria authored Feb 22, 2024
1 parent f0f2099 commit 5e4d704
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clean_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export PYTHONPATH=
export PYTHONUSERBASE=disabled_by_wrong_value
4 changes: 4 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ authors = ["Silvio Traversaro <[email protected]>"]
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
Expand Down

0 comments on commit 5e4d704

Please sign in to comment.