diff --git a/setup.cfg b/setup.cfg index 33acc097a9..b1d3b6fb70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,6 +14,16 @@ classifier = Operating System :: POSIX :: Linux Programming Language :: Python +# This is here to workaround setuptools automatic package discovery problems. +# Setuptools finds multiple packages which is an error with autodiscovery. +# This is due to having python files in separate top level dirs that are not +# excluded from searching. All of this is documented at: +# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#automatic-discovery +# We essentially bypass it by telling it there are no packages to discover +# then rely on PBR to find the package for us instead. +[options] +packages = + [build_sphinx] all_files = 1 build-dir = doc/build