[Python] Can I specify a different directory for transient files, when invoking Python...

Discussão em 'Python' iniciado por Stack, Junho 12, 2025.

  1. Stack

    Stack Membro Participativo

    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?

    Continue reading...

Compartilhe esta Página