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 (
finddirective withincludeorexclude) -
use a
src-layout -
explicitly set
py_modulesorpackageswith a list of names
To find more information, look for “package discovery” on setuptools docs.
Who can kindly help me? @
krassowski
@ trungleduc