neuro-team-femto / cleese

Combinatorial Expressive Speech Engine
MIT License
42 stars 10 forks source link

error: Multiple top-level packages discovered in a flat-layout: ['cleese', 'tutorial'] #9

Closed seunggookim closed 2 years ago

seunggookim commented 2 years ago

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.

- Cause?: `setup` detected `*.py` files in the `tutorial/configs` directory and thought this is another python package.
- Solution: move the `tutorial` directory and the `*.ipynb` file to the `doc` directory.

$ python3 setup.py install running install (...) Finished processing dependencies for cleese==0.1.0

jjau commented 2 years ago

Another possibility would be to use the packages option in setup to ignore the /doc directory ?

seunggookim commented 2 years ago

Yes, setup.py can have packages=['cleese']. I've updated my branch accordingly and it's ready to be merged.

jjau commented 2 years ago

Perfect thanks