Skip to content

Commit 424fcfe

Browse files
committed
fix(deps): Set py-modules to nothing
This should fix the error I'm getting after moving DockerFile inside a directory. The current error is: ``` Downloaded uvloop × Failed to build `inception @ file:///home/runner/work/inception/inception` ├─▶ The build backend returned an error ╰─▶ Call to `setuptools.build_meta:__legacy__.build_editable` failed (exit status: 1) [stderr] error: Multiple top-level packages discovered in a flat-layout: ['docker', 'inception']. To avoid accidental inclusion of unwanted files or directories, setuptools will not proceed with this build. If you are trying to create a single distribution with multiple packages on purpose, you should not rely on automatic discovery. Instead, consider the following options: 1. set up custom discovery (`find` directive with `include` or `exclude`) 2. use a `src-layout` 3. explicitly set `py_modules` or `packages` with a list of names To find more information, look for "package discovery" on setuptools docs. hint: This usually indicates a problem with the package or the build environment. Error: Process completed with exit code 1. ``` That's coming from the lint CI. Stack overflow says this should help: https://stackoverflow.com/a/72547402/64911
1 parent e883d60 commit 424fcfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ gpu = [
3232
"torch>=2.5.1",
3333
]
3434

35+
[tool.setuptools]
36+
py-modules = []
3537

3638
[tool.uv]
3739
conflicts = [

0 commit comments

Comments
 (0)