Coder Social home page Coder Social logo

Comments (7)

pjz avatar pjz commented on July 29, 2024 1

A start might be a way to tell pipsi to:

  1. install the package in a venv whose name I can specify but without linking anything into the bin-dir
    pipsi install-as ansible-2 ansible==2.0.2.0
  2. link the binaries from the specified venv into the (maybe specified) bin-dir, using the specifed name
    pipsi link ansible-2 ansible ansible2
    pipsi link ansible-2 ansible ansible2 --bin-dir /path/to/bin

Both of these things are fairly simple, I think, and potentially worth doing individually anyway. pipsi link would allow the links to pipsi to be more easily moved/copied from the bin-dir that was specified at install time. Combine it with install-as and it's possible to use pipsi to manage a farm of python utils where, for instance, ansible 1 is in one project's bin directory while ansible 2 is in a different project's directory.

from pipsi.

RonnyPfannschmidt avatar RonnyPfannschmidt commented on July 29, 2024

currently that is not supported, its also not clear how to support this without metadata about the envs

from pipsi.

ginkel avatar ginkel commented on July 29, 2024

One naive idea would have been to name the envs accordingly, i.e., ansible==2.0.2.0 is installed to an env named ansible-2.0.2.0. Binaries would be linked as ansible-2.0.2.0, ansible-playbook-2.0.2.0, and so on... Do you think more metadata would be needed?

from pipsi.

sean-abbott avatar sean-abbott commented on July 29, 2024

I would add an "update alternatives" componenet to it as well..link the versioned executables, but then also allow a selector that says "show me the available versions, and let me choose which one I want linked to the primary binaries".

Again, naively, you should be able to have a list of scripts you're going to link from a given setup file, although it's possible that could change between versions...

I also have this need, with ansible being the main driver. :-)

from pipsi.

RonnyPfannschmidt avatar RonnyPfannschmidt commented on July 29, 2024

that was my plan before i stopped using pipsi in favour of nix

from pipsi.

sean-abbott avatar sean-abbott commented on July 29, 2024

Are you using nix to give you isolated venvs for python tools, or are you using nixos? If the former, is there a guide to doing that?

from pipsi.

RonnyPfannschmidt avatar RonnyPfannschmidt commented on July 29, 2024

i do both - i used nox before, now i also use nixos, there are guides for using nix on other distros

from pipsi.

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.