GithubHelp home page GithubHelp logo

Add a `remove` command about pixi HOT 7 CLOSED

prefix-dev avatar prefix-dev commented on September 25, 2024 1
Add a `remove` command

from pixi.

Comments (7)

baszalmstra avatar baszalmstra commented on September 25, 2024 3

@dhirschfeld I wonder what that would look like in our pixi.toml. When you use pixi remove python it would simply remove python from the [dependencies] (and co) table and then resolve and reinstall the environment.

The pixi.toml defines the source of truth, not the cli. You can always recreate the exact same environment from it (especially with a lockfile). So if you want to only install the dependencies of a certain package that should be specified in the pixi.toml. (Thats currently not supported).

If I read the usecase specified in the issues correctly I think you want to override a dependency of a project to be able to use a development version. We will most likely support this by overriding the source of a dependency:

my_dependency = { git = "some git repo URL" }
# or
my_dependency = { path = "../path_to_other_project" }
# or
my_dependency = { package = "my_dependency.conda" }

Doing this should be available through the pixi CLI but it will just update the pixi.toml file so that that file always contains the "truth".

Note

This is all still future talk!

from pixi.

Wackyator avatar Wackyator commented on September 25, 2024 1

can this be assigned to me

from pixi.

dhirschfeld avatar dhirschfeld commented on September 25, 2024 1

Note: It can be incredibly useful to be able to remove a package without removing any of it's dependencies. conda implements this with the --force flag which will then only remove the specified package from the environment.

Discussion in:

from pixi.

wolfv avatar wolfv commented on September 25, 2024 1

Mamba and conda also have a --no-deps and --only-deps flag. We could add that in pixi.toml

from pixi.

ruben-arts avatar ruben-arts commented on September 25, 2024

This feature depends on the removing functionality described in #77

from pixi.

dhirschfeld avatar dhirschfeld commented on September 25, 2024

Being able to tell the resolver to completely ignore a required dependency (i.e. assume a compatible version is already installed) would be more in line with what I was thinking - e.g. something like:

my_dependency = "ignore"

This can also be invaluable when the dependencies are mis-specified but you need to install it regardless. With conda you can do that by installing the .tar.bz2 directly which can be a useful escape-hatch.

from pixi.

goyalyashpal avatar goyalyashpal commented on September 25, 2024

self hide as offtopic


Note

This is all still future talk!

so, github gave green flag to this feature, wow....

from pixi.

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.