You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ...
The text was updated successfully, but these errors were encountered:
We can change make clean to do git clean -Xdf (remove only ignored files so amongst other things compiled files and leave unversioned files alone) as suggested by the numpy error message.
Originally reported in #23413
This seems to be a change in setuptools 61 about package discovery ... probably a related issue is pypa/setuptools#3197
Weirdly enough the other
setup.py
commands seems to work OK e.g.python setup.py develop
orpython setup.py install
...The text was updated successfully, but these errors were encountered: