question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zymergen-lukecommented, Dec 13, 2018

This can be closed now since @sdispater added a new feature in #731

poetry env info --path

will return the path to the environment.

You can call the following to activate your environment consistently:

source ${poetry env info --path}/bin/activate
1reaction
zymergen-lukecommented, Nov 8, 2018

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found