|
@@ -1685,3 +1685,14 @@ class bdist_apps(setuptools.Command):
|
|
|
|
|
|
|
|
else:
|
|
else:
|
|
|
self.announce('\tUnknown installer: {}'.format(installer), distutils.log.ERROR)
|
|
self.announce('\tUnknown installer: {}'.format(installer), distutils.log.ERROR)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+def finalize_distribution_options(dist):
|
|
|
|
|
+ """Entry point for compatibility with setuptools>=61, see #1394."""
|
|
|
|
|
+
|
|
|
|
|
+ options = dist.get_option_dict('build_apps')
|
|
|
|
|
+ if options.get('gui_apps') or options.get('console_apps'):
|
|
|
|
|
+ # Make sure this is set to avoid auto-discovery taking place.
|
|
|
|
|
+ if getattr(dist.metadata, 'py_modules', None) is None and \
|
|
|
|
|
+ getattr(dist.metadata, 'packages', None) is None:
|
|
|
|
|
+ dist.py_modules = []
|