I currently build my simple Python module with a command like:
python3 -m build --wheel --outdir /tmp .
This creates the /tmp/mypackage-0.1-py3-none-any.whl -- as one would expect. However, it also creates the myproject.egg-info/ and build/ subdirectories in the project directory (next to the pyproject.toml), which I find annoying -- it should be possible for the project directory to be read-only.
The python3.11 -m build --help does not list any options, that'd allow to specify a different path for the transient files/folders. Is there some undocumented method, perhaps?
setuptoolsis used, right? I suppose, I can switch -- but I'd rather avoid anything "exotic" (which would have to be installed too).