-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable specifying the location of the environment outside the project directory #255
Comments
This is a good idea. The environment can always be recreated from a project/lock files, so any pixi command can work with both an existing as well as a missing environment. This makes the pixi essentially stateless. For anyone looking to implement this, we should:
Im not hung up on the names of these arguments/environment variables. |
How about also adding an option in Configuring the |
But wouldn't the |
Sure, but there are certainly ways to make it invariant by using either relative paths (relative to the project repo or |
I think it's important for projects to be isolated as much as possible. I wouldn't want to clone a random project only to notice that the installation of my environment now happens in a completely "random" location on my PC. I would even consider that a security risk. Sure running a task has the same implications but that's one step further from installing the dependencies. If we can guarantee that the target-dir in the project file is relative to the root that would be fine. |
I think we can have some "private" configuration variables in teh |
Hey, I'd love to take a shot at resolving this. Mind if I hop in and give it a try? Assigning it to me would be awesome. Thanks! 🦀 |
Sure thing! Let me know if you need any help! |
Thank you for assigning me the task. I'll begin working on it tomorrow. If I encounter any challenges, I'll be sure to reach out for assistance. |
I have different use case which unfortunatly also needs this feature. My manager wants to place some python scripts in folder on OneDrive. The scripts are supposed to run on some excel file located there. I can't create a If the |
You can specify this in .pixi/config.toml with https://pixi.sh/dev/reference/pixi_configuration/#detached-environments |
Fantastic. Thanks a ton @pavelzw. I looked around but didn't realize that this was already implemented. |
Close as fixed by #1381 |
It would be great if project-specific envs could be installed outside of the project directory.
The use case here is that I currently use a cloud provider that creates ephemeral machines with free (block) storage, while the project files (i.e., code) are stored on a persistent EFS-like server that is mounted onto the ephemeral VMs. This is a typical managed-JupyterLab setup.
As such, if the environment was saved under the root of my project, I'd be paying quite a bit for storage. My currently set up uses micromamba, where the environment is saved in the root directory in a Docker container (which uses the machine's storage), and the project files (code) are mounted on top.
Having a way to tell
pixi
where to save the environment or to link an (already existing) external environment with a Pixi project would be a welcome addition.The text was updated successfully, but these errors were encountered: