Skip to content

uv sync and uv run not detecting file changes when using scikit_build_core.build backend #15809

@alechouse97

Description

@alechouse97

Summary

We have an all python code that we are compiling to cython modules (all .so instead of .py) upon delivery to customers/users. I was able to get this part up an running quickly using the scikit_build_core.build backend. However, I have run into two issues that I have been unable to solve when it comes to working on the project:

  1. After making a source code change, running uv sync does not recompile the package, so these changes are never reflected.
  2. When running a file using uv run, the package is only recompiled if the file you are running has changed, but not any other modules in the package.

Ideally, when using the scikit_build_core.build backend, uv should detect source code file changes and recompile the package.

Or, and this would probably be preferred in my case since the package itself is python only, have a flag or option for uv sync or run or in the pyproject.toml where the code not compiled, and just installed as raw python. Then we only compile with cython when running uv build.

Platform

RHEL 9 x86_64

Version

uv 0.8.17

Python version

Python 3.13.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions