8000 Create virtualenv with direct URLs in requirements.txt · Issue #22423 · microsoft/vscode-python · GitHub
[go: up one dir, main page]

Skip to content
Create virtualenv with direct URLs in requirements.txt #22423
Closed
@sbidoul

Description

@sbidoul

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 environmentsfeature-requestRequest 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

    0