Coder Social home page Coder Social logo

Comments (6)

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

Seems to work for me: https://gist.github.com/hpk42/6249348
Please re-open if i missed something and you can contribute a failing example.

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hellp

Ah sorry, just rewrote the issue when you wrote your comment. It fails when the directory is not a virtualenv yet. devpi states that it creates one one the fly, but fails to do so in this case.

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hellp

One could argue that the docs are ambiguous:

#!bash

  --venv DIR       install into specified virtualenv (created on the fly if
                   none exists).

What does it create on the fly? Just a dir or a virtualenv? At the moment it just checks for directory existence, but not if that dir is an actualy virtualenv :)

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hellp

#!python

    if venv:
        vpath = py.path.local(venv)
        if not vpath.check():
            hub.popen_check(["virtualenv", "-q", venv] + xopt)

I wonder if we could just remove the if vpath.check() here. Just let virtualenv's logic decide if venv is already proper or not.

Or is that dangerous? On the other hand typing "--venv bla" requires as much user intention as typing "virtualenv bla" -- with the same consequences.

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

Florian Schulze (@fschulze on IRC) rightfully wanted devpi to leave virtualenv's alone. I think we need to improve the detection code to check for a few more things.

from devpi.

fschulze avatar fschulze commented on May 24, 2024

The upcoming devpi-client 6.0.0 will abort when the virtualenv is missing and not create one automatically anymore.

from devpi.

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.