Skip to content

pip install -e ".[dev]" #1098

@petrasvestartas

Description

@petrasvestartas

Hi,

I want to use the following command to install dependencies from both requirements.txt and requirements-dev.txt:

pip install -e ".[dev]"

I understand that this can be achieved by specifying the dependencies in pyproject.toml. However, I haven’t found a way to install them directly from the text files when using scikit-build-core.

Do you have any recommendations or insights into why pip install -e ".[dev]" doesn't work with scikit-build-core unless the dependencies are explicitly listed in pyproject.toml, rather than being pulled from the requirements text files?

dependencies = [
    "numpy >= 1.21.0",
    "compas >= 2",
    "compas_dem",
]


[project.optional-dependencies]
dev = [
    "attrs >= 17.4",
    "black >= 22.12.0",
    "bump-my-version",
    "compas_invocations2",
    "invoke >= 0.14",
    "ruff",
    "sphinx_compas2_theme",
    "twine",
    "wheel",
    "scikit-build-core",
    "nanobind",
    "cmake",
    "build",
    "compas_viewer",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions