Skip to content

pip installing npe2api fails #65

@TimMonko

Description

@TimMonko

So, I'm following the setup instructions and pip install -e ".[dev]" fails with a completely sensible error. but, if I then do npm run dev, I am able to serve it on localhost.
These install instructions are confusing XD first time installing nvm/npm so 🤷 like whats the goal of pip installing this I have no idea
I'm going to bed, not sure why this stuff is here but figured I'd start an issue

(npe2api) C:\Users\Tim\npe2api>pip install -e ".[dev]"
Obtaining file:///C:/Users/Tim/npe2api
  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: ['lib', 'pages', 'public', 'node_modules'].

      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.
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions