Code Monkey home page Code Monkey logo

Comments (4)

cjdoris avatar cjdoris commented on May 24, 2024 2

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.

cjdoris avatar cjdoris commented on May 24, 2024 1

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.

Roger-luo avatar Roger-luo commented on May 24, 2024

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

image

from condapkg.jl.

cjdoris avatar cjdoris commented on May 24, 2024

(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.