Skip to content

Update setup.py to fix pip error: Multiple top-level packages discovered in a flat-layout: ['data', 'tonic']#17

Open
ruman-shaikh wants to merge 2 commits intofabiopardo:masterfrom
ruman-shaikh:patch-1
Open

Update setup.py to fix pip error: Multiple top-level packages discovered in a flat-layout: ['data', 'tonic']#17
ruman-shaikh wants to merge 2 commits intofabiopardo:masterfrom
ruman-shaikh:patch-1

Conversation

@ruman-shaikh
Copy link

@ruman-shaikh ruman-shaikh commented Feb 11, 2025

pip install -e tonic/
Obtaining file:///.../tonic
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      error: Multiple top-level packages discovered in a flat-layout: ['data', 'tonic'].
      
      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.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant