Project layout
A minimal alloconda project typically keeps Zig in src/ and Python in
python/:
hello_alloconda/
├── build.zig
├── build.zig.zon
├── pyproject.toml
├── python/
│ └── hello_alloconda/
│ └── __init__.py
└── src/
└── root.zig
Notes:
build.zigandbuild.zig.zonare generated byalloconda init.src/root.zigdefinespub const MODULE = ...and your Zig API surface.python/hello_alloconda/is the Python package directory. The CLI copies the compiled extension here and writes__init__.py.pyproject.tomlprovides Python metadata and build backend configuration.
If you keep Python sources outside python/, pass --package-dir to the CLI or
set tool.alloconda.package-dir in pyproject.toml.
If you prefer a different Zig source layout, update build.zig to point at
your new root.zig path.