Comments (9)
Thanks for reporting.
Ideally, we wouldn't use bat scripts anymore mid-term, but until then I agree that we should run the deactivate script.
Would you be interested to open a PR for that?
from pixi.
Thanks for looking into it! I'm not familiar with the pixi code base so it may have to be someone else.
On a related note, I haven't checked, but are environment variables set/respected for global installed tools by default? Conda 4.9 and later supports setting these in the meta.yaml recipe variables section. I ask because I developed a conda package that sets and unsets a specific environment variable for the tool in the activate.d and deactivate.d scripts, but I may update it to use the recipe instead since that would be safer.
from pixi.
Good question, if don't do it yet, then we should start doing it.
from pixi.
Im not quite sure I understand because the tools also start a new shell, so any variables set only persist with the tools environment doesnt it?
from pixi.
Variables set in the recipes should be repected!
from pixi.
Great! and yes, in a new shell it does not matter. But I was thinking more for 'global' installed tools where it appears that a shell is not activated to run the program.
from pixi.
Great! and yes, in a new shell it does not matter. But I was thinking more for 'global' installed tools where it appears that a shell is not activated to run the program.
Could you give a small reproducer, where the environment is modified after running a binary installed by pixi global?
from pixi.
I just tested my example and because the activate scripts were run in a bash script, the environment changes don't persist after the script is finished running. So there is no need to run the deactivate.d scripts if the only things modified by them are environment variables. My apologies!
from pixi.
Thanks for confirming
from pixi.
Related Issues (20)
- Add pixi version to system requirements HOT 4
- Regression from 0.25.0 -> 0.28.2 HOT 4
- Can a toml file built on Windows be reconstructed on Linux? HOT 5
- Python GDAL Import Error in PyCharm after Micromamba and Pixi Installation HOT 1
- Option '--color always' is not working as expected. HOT 1
- Error loading conda environment with Pixi in PyCharm
- Add support to use different `pypi-options` for different environments HOT 4
- `conda-pypi-map = { }` doesn't work in offline HOT 2
- allow choosing prefer repodata format HOT 1
- Environment with old versions for NumPy/Numba fails to resolve HOT 1
- Regression with pixi 0.28.x HOT 5
- Escaping shell substitution with `pixi run` requires multiple layers of quoting HOT 1
- add option to byte-compile python at install time HOT 1
- Invalid peer certificate with `--tls-no-verify` HOT 10
- Supporting `uv` configuration HOT 4
- conda-pypi-map misleading error, issues with numpy HOT 4
- pixi list --locked updates the lockfile
- Cannot `pixi run` tools installed in path with spaces HOT 2
- Search does not return existing conda-forge packages and pixi add complains about "no candidates found" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi.