Comments (6)
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.
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.
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.
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.
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.
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)
- [discussion] Asyncio speedups HOT 7
- docs zip contains unwanted package source files HOT 3
- [client] upload `OSError: [Errno 18] Invalid cross-device link '/tmp/devpi-…/dist/….whl' -> 'dist/….whl'` HOT 2
- Cannot load packages when use base auth in gitlab registry mirror HOT 4
- Need help upgrading from 4.4.0 to current HOT 3
- Incorrect version given to doczip with devpi-client version 7.0.0 HOT 7
- Pluggy's update broke devpi HOT 7
- devpi can install package that is not in mirror_whitelist HOT 15
- Give obvious warning if version file is included in uploaded package HOT 2
- Support basic auth for mirrors via a plugin HOT 1
- upload large WHL files HOT 7
- Support PEP-691: JSON response to the `/simple` API endpoint HOT 4
- devpi web; feature: reference older version's docs? HOT 2
- forgot the root password,how to reset the root password HOT 2
- pytest-flake8 is abandoned
- Support for newer packaging HOT 2
- AttributeError: type object 'PersistentCurrent' has no attribute 'auth' HOT 3
- Mirroring fails for packages with hashes other than sha256 HOT 7
- Failed to upload tensorflow wheel with 400 error HOT 7
- Provide an aiohttp-less version for server HOT 15
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 devpi.