Skip to content

Deployment fails when some subdir exists #66

@andre-merzky

Description

@andre-merzky
thinkie  merzky  ~   $ cd /tmp
thinkie  merzky  /tmp   $ git clone git@github.com:radical-cybertools/ROSE.git
Cloning into 'ROSE'...
[...]

thinkie  merzky  /tmp   $ cd ROSE
thinkie  merzky  /tmp/ROSE  [main] $ python3 -m venv ve3
thinkie  merzky  /tmp/ROSE  [main] $ . ve3/bin/activate
(ve3)  thinkie  merzky  //tmp/ROSE  [main] $ pip install .
Processing /tmp/ROSE
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['ve3', 'rose'].

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

This is the reason why the other radical modules place the source tree under src/ (see point 2 in the message above). I would recommend the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions