When distributing Python packages, some configurations of packaging tools (setuptools, hatchling, flit, pdm) could be more energy consuming than others.
Example: automatic package discovery using setuptools
Non compliant
Using automatic package discovery
[options]
# ...
package_dir =
= src
# directory containing all the packages (e.g. src/mypkg, src/mypkg/subpkg1, ...)
Compliant
Each package is named, which saves the effort of finding the packages.
When distributing Python packages, some configurations of packaging tools (setuptools, hatchling, flit, pdm) could be more energy consuming than others.
Example: automatic package discovery using setuptools
Non compliant
Using automatic package discovery
Compliant
Each package is named, which saves the effort of finding the packages.