Skip to content

Commit 39cce31

Browse files
committed
setuptools: Disable auto discovery
The latest release of setuptools 61.0 made a breaking change[1] and because of this change 'pip install' fails with the following error. ~~~ error: Multiple top-level packages discovered in a flat-layout: ['lib', 'spec', 'manifests', 'releasenotes']. ~~~ Users that don't set 'packages', 'py_modules', 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. To disable auto discovery, one can do below in setup.py ~~~ setuptools.setup(..,packages=[],..) ~~~ or ~~~ setuptools.setup(..,py_modules=[],..) ~~~ [1] pypa/setuptools#3197 Note setup.py is not used to install puppet modules. However it is used to generate a release note, thus should be fixed. Signed-off-by: Jiri Podivin <[email protected]> Change-Id: I2042b3cf27250d4dda142de52fd84ebb9f840509
1 parent ef6d766 commit 39cce31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717

1818
setuptools.setup(
1919
setup_requires=['pbr>=2.0.0'],
20+
py_modules=[],
2021
pbr=True)

0 commit comments

Comments
 (0)