Skip to content

Recompilation in an editable install hides all compiler output #820

Closed

Description

@Cadair

This line:

subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=subprocess.DEVNULL, check=True)

hides all build output, so if the build fails due to missing build requirements or some other reason, you don't get any indication as to why.

I would expect the compilation output to be shown at import time.

I found this while trying to do an editable install of numpy, and because the initial install of numpy used build isolation the import time recompile did not have the build requirements (cython).

Activity

  1. modified the milestones: v0.20.0, v0.21.0 on Jun 10, 2026
  2. rgommers commented on Jun 28, 2026

    @rgommers
    Contributor

    A setting in pyproject.toml to change the default behavior is no merged (gh-838) and will be released very soon in 0.21.0. A mode to only show the relevant part of a build error on failure by default, and be silent otherwise, still has an open PR: gh-750.

  3. dnicolodi commented on Jun 28, 2026

    @dnicolodi
    Member

    #750 started out on the wrong foot and is still wrong. The author seems to have lost interest in fixing it.

  4. rgommers commented on Jun 28, 2026

    @rgommers
    Contributor

    The principle discussed there is still valid though: parse the ninja logs and show the relevant part of a build failure. Hence why this issue is still open. In case gh-750 keeps being stalled, someone else can give that a go.

  5. added 6 commits that reference this issue on Jun 29, 2026
    899cb5c
    afe4ef2
    9bbc6c8
    fa08e0d
    b41af25
    c8de736
  6. added 3 commits that reference this issue on Jul 23, 2026
    fba435c
    e8c67de
    7dd8711
  7. added a commit that references this issue on Aug 5, 2026
    6c0f5f7
  8. added a commit that references this issue on Aug 21, 2026
    be2f1c9
  9. added a commit that references this issue on Aug 21, 2026
    4124821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions