Support a --venv flag similar to pipenv
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
Issue
pipenv supports a flag --venv
flag that simply prints the path to the existing venv, or returns a non-0 status code if it doesn’t exist. This allows solutions like https://github.com/w0rp/ale/issues/1656 to auto-detect (without unwanted side effects) whether pipenv should be used to run, for example, a linter.
The closest thing I’ve found in poetry so far to this effect is debug:info
, which will unfortunately auto-create the virtualenv if it doesn’t exist, which would lead to false positives in scenarios like the ALE one.
I may be able to take a crack at this one personally, I don’t imagine it’ll be the hardest task in the world.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Advanced Usage of Pipenv - Read the Docs
Installation is intended to be as deterministic as possible — use the --sequential flag to increase this, if experiencing issues. ☤ Specifying Package...
Read more >Python Venv (Virtual Environment) with Pipenv - DataCamp
Learn how to create a Python venv in two different ways. Follow out step-by-step tutorial and use Pipenv and/or Anaconda for venvs today!...
Read more >Pipenv & Virtual Environments
Pipenv is a dependency manager for Python projects. If you're familiar with Node.js' npm or Ruby's bundler, it is similar in spirit to...
Read more >How to Manage Python Dependencies with Virtual ...
Venv is a lower level tool than Pipenv, and is especially useful if Pipenv does not meet your particular virtual environment needs. If...
Read more >pipenv Documentation - Read the Docs
virtualenv, pipenv, tox, and similar software. ... VERSION flag, like so: ... Originally pipenv supported only two package groups: packages and dev-packages ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This can be closed now since @sdispater added a new feature in #731
will return the path to the environment.
You can call the following to activate your environment consistently:
@K900 I had some spare time this morning so I threw together a quick patch myself. Want to take a look and see if that’s roughly what you have in mind?