When I git clone source code from GitHub - jupyter/notebook: Jupyter Interactive Notebook,
and I followed these steps to build
(1) conda env update --file binder/environment.yml
(2) conda activate notebook
(3) pip install -ve .
(4) jlpm run build
but when I ran âpython setup.py buildâ or âpython setup.py sdistâ , it met errors:
(notebook) intel@intel:~/notebook$ python setup.py build
error: Multiple top-level packages discovered in a flat-layout: [âappâ, âbinderâ, âpackagesâ, ânotebookâ, âbuildutilsâ, ânode_modulesâ].
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:
-
set up custom discovery (
find
directive withinclude
orexclude
) -
use a
src-layout
-
explicitly set
py_modules
orpackages
with a list of names
To find more information, look for âpackage discoveryâ on setuptools docs.
Who can kindly help me? @
krassowski
@ trungleduc