Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create virtualenv with direct URLs in requirements.txt #22423

Copy link
Copy link
Closed
@sbidoul

Description

@sbidoul
Issue body actions

Hi,

I'm not sure if this is a bug or a feature request.

I'm trying the new Create Virtual environment feature with the following test project:

pyproject.toml

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "vscodetest"
version = "1.0"
dependencies = ["pip-test-package"]

requirements.txt

pip-test-package @ git+https://github.com/pypa/pip-test-package

The idea is to have abstract unpinned dependencies in project.dependencies and pinned dependencies in requirements.txt.

When I do >Python: Create Environment..., select .venv, then requirements.txt, vscode

  • creates the virtual environment
  • upgrades pip
  • then tries to pip install --editable .

This fails because the pip-test-package dependency is not available on PyPI.

Ideally, it should install requirements.txt in the same command as the editable install: pip install -e . -r requirements.txt.

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionalityRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.