You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/nbdime/files/nbdime-2.0.0-remove-bdist_e...

37 lines
1.1 KiB

--- a/setupbase.py
+++ b/setupbase.py
@@ -129,17 +129,6 @@
build_py.finalize_options()
-class bdist_egg_disabled(bdist_egg):
- """Disabled version of bdist_egg
-
- Prevents setup.py install performing setuptools' default easy_install,
- which it should never ever do.
- """
- def run(self):
- sys.exit("Aborting implicit building of eggs. Use `pip install .` "
- " to install from source.")
-
-
def create_cmdclass(prerelease_cmd=None, package_data_spec=None,
data_files_spec=None):
"""Create a command class with the given optional prerelease class.
@@ -179,14 +168,9 @@
wrapper = functools.partial(_wrap_command, wrapped)
handle_files = _get_file_handler(package_data_spec, data_files_spec)
- if 'bdist_egg' in sys.argv:
- egg = wrapper(bdist_egg, strict=True)
- else:
- egg = bdist_egg_disabled
-
cmdclass = dict(
build_py=wrapper(build_py, strict=is_repo),
- bdist_egg=egg,
+ bdist_egg=wrapper(bdist_egg, strict=True),
sdist=wrapper(sdist, strict=True),
handle_files=handle_files,
)