Skip to content

Install multiple [editable] packages from src/<packageN>? #1998

Answered by ruben-arts
jmuchovej asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need to specify your build system to use the src-layout

.
├── pixi.lock
├── pyproject.toml
└── src
    ├── package1
    │   └── __init__.py
    └── package2
        └── __init__.py

pyproject.toml:

[project]
name = "package_name"
requires-python = ">= 3.11"
version = "0.1.0"

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.pypi-dependencies]
package_name = { path = ".", editable = true }

[tool.hatch.build.targets.wheel]
packages = ["src/package1", "src/package2"]
❯ pixi run python
Python 3.12.5 | packaged by conda-forge | (main, Aug  8 2024, 18:36:51) [GCC 12.4.0] o…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmuchovej
Comment options

@ruben-arts
Comment options

Answer selected by jmuchovej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants