Closed orientnab closed 1 year ago
Hi!
I know the solution you propose is very easy to incorporate, but I'm curious given the context:
python setup.py check
only asks for url
and either (author and author_email) or (maintainer and maintainer_email)
setuptools.find_packages()
finds them automatically.packages
field in https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use (setup.py
tab)Quite a bit of blame on setuptools
found via https://www.google.com/search?q=Multiple+top-level+packages+discovered+in+a+flat-layout.
pip list | grep setuptools
)?Cheers!
It seems something has become stricter or more explicit since 61.0. I'm on 65.5, I don't think a new version will change much.
Please note that it is not possible to automatically derive a single name when the distribution consists of multiple top-level packages or modules. (https://setuptools.pypa.io/en/latest/history.html#v61-0-0)
_Users that don’t set packages, pymodules, or configuration are still likely to observe the auto-discovery behavior, which may halt the build if the project contains multiple directories and/or multiple Python files directly under the project root. (https://setuptools.pypa.io/en/latest/history.html#v61-1-0)
Ok, thanks for the info!
I've committed directly to master
at https://github.com/roboticslab-uc3m/gymnasium-playground/commit/31ba44d436f16de5e849bee400efd9d63cbdfdea
Please reopen if this did not make the fix!
On installation pip throws:
error: Multiple top-level packages discovered in a flat-layout
It seems it can be fixed by specifying the package in
setup.py
.