Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
blshkv opened this issue Jun 2, 2022 · 3 comments
Open

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

blshkv opened this issue Jun 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@blshkv
Copy link

blshkv commented Jun 2, 2022

 * 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

@blshkv blshkv added the bug Something isn't working label Jun 2, 2022
@stratakis
Copy link

Potential fix: pypa/setuptools#3197 (comment)

@blshkv
Copy link
Author

blshkv commented Jun 22, 2022

@sajad002
Copy link

sajad002 commented May 28, 2023

@blshkv

The first link helped me, thank you a lot. I've tested with setuptools-60.10.0, emerge successfully finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants