Skip to content

setup.py: Multiple top-level packages discovered in a flat-layout #113

@blshkv

Description

@blshkv
 * Build system packages:
 *   dev-python/setuptools         : 62.1.0-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-analyzer/pwncat-0.1.2/work/pwncat-0.1.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-analyzer/pwncat-0.1.2/work/pwncat-0.1.2 ...
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 12
/usr/lib/python3.9/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
error: Multiple top-level packages discovered in a flat-layout: ['pse', 'man', 'art', 'share'].

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions