Comments (4)
Yeah I've thought about this before - I agree it would be nice to let the GC clean these up. The issue with scratch spaces is that if your project doesn't have a UUID (i.e. doesn't have a Project.toml) then the scratch space is put somewhere global. I guess we could use scratch spaces in the case there is a UUID and the current behaviour otherwise.
Scratch.jl is used by MicroMamba.jl to store the package cache (root prefix).
from condapkg.jl.
OK, having thought about the scratch-space idea some more, I've concluded that it doesn't make much sense:
- Most of the time, users work in ordinary projects, which do not have UUIDs, so we cannot use scratch spaces for these.
- The exception is if you're developing a package, which does have a UUID. But in this case, we want different versions of the same package to have different conda environments, because they may have different dependencies. So a single scratch space for all versions of the package is not useful.
So I'll stick with the current behaviour of using a .CondaPkg
directory under the project directory.
Feel free to reopen if you want to discuss further.
from condapkg.jl.
I hit another issue due to this - when using Bloqade
which depends on PythonCall
that requires matplotlib
in Pluto notebook, since Pluto will initialize the project in temporary directory, CondaPkg seems to be creating the env there too, which does not have executation rights
from condapkg.jl.
(I'll also note that if you delete a project, then since the conda environment is in a subdirectory, then it gets deleted too. So I think the original GC motivation wasn't actually going to help.)
from condapkg.jl.
Related Issues (20)
- Using CondaPkg with R Packages HOT 4
- Incorrect cuda-nvcc version HOT 3
- Not able to specify βextrasβ in `pip_add` ? HOT 1
- Set conda environment for a package HOT 2
- CondaPkg constantly uninstalling, reinstalling all packages HOT 4
- `conda-build` and `conda skeleton` HOT 3
- Automatically load conda packages from the dependend julia packages HOT 3
- To do: ignore indirect dependencies on CondaPkg
- How to make RCall.jl use a CondaPkg.jl environment? HOT 8
- add preferences to control allowed channels and priority
- freeze the environment by default when it is activated HOT 2
- add completions for rm, pip_rm and channel_rm HOT 1
- dependency overrides HOT 1
- [Bug] file is not passed to write_toml HOT 2
- only add channel if it is not already added
- using CondaPkg with Pluto leads to unnecesarry resolves HOT 7
- Post install/update hook HOT 3
- Feature Request: Support CONDA_CHANNELS to set conda channels HOT 1
- access denied.: "C:\Users\...\v1.9\.CondaPkg\env\DLLs\_ctypes.pyd.mamba_trash" HOT 1
- `pip_add` for URLs HOT 6
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 condapkg.jl.