8000 setuptools >= 61 package discovery issue with python setup.py clean · Issue #23423 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
setuptools >= 61 package discovery issue with python setup.py clean #23423
Closed
@lesteve

Description

@lesteve

Originally reported in #23413

This seems to be a change in setuptools 61 about package discovery ... probably a related issue is pypa/setuptools#3197

mamba create -n test -c conda-forge python=3.9 numpy scipy cython -y
conda activate test
python setup.py clean
error: Multiple top-level packages discovered in a flat-layout: ['prof', 'sklearn', 'maint_tools', 'build_tools', 'asv_benchmarks', 'cache_directory'].

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.

Weirdly enough the other setup.py commands seems to work OK e.g. python setup.py develop or python setup.py install ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0