Skip to content

Commit

Permalink
Remove easy_install script and module.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 24, 2021
1 parent ea22005 commit 4b0408a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
5 changes: 0 additions & 5 deletions easy_install.py

This file was deleted.

1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -24,7 +24,6 @@ project_urls =

[options]
packages = find_namespace:
py_modules = easy_install
# disabled as it causes tests to be included #2505
# include_package_data = true
python_requires = >=3.6
Expand Down
17 changes: 0 additions & 17 deletions setup.py
Expand Up @@ -30,22 +30,6 @@ def read_commands():
return command_ns['__all__']


def _gen_console_scripts():
yield "easy_install = setuptools.command.easy_install:main"

# Gentoo distributions manage the python-version-specific scripts
# themselves, so those platforms define an environment variable to
# suppress the creation of the version-specific scripts.
var_names = (
'SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT',
'DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT',
)
if any(os.environ.get(var) not in (None, "", "0") for var in var_names):
return
tmpl = "easy_install-{shortver} = setuptools.command.easy_install:main"
yield tmpl.format(shortver='{}.{}'.format(*sys.version_info))


package_data = dict(
setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'],
)
Expand Down Expand Up @@ -170,7 +154,6 @@ def _restore_install_lib(self):
"depends.txt = setuptools.command.egg_info:warn_depends_obsolete",
"dependency_links.txt = setuptools.command.egg_info:overwrite_arg",
],
"console_scripts": list(_gen_console_scripts()),
},
dependency_links=[
pypi_link(
Expand Down
5 changes: 3 additions & 2 deletions setuptools/tests/test_namespaces.py
Expand Up @@ -62,8 +62,9 @@ def test_pkg_resources_import(self, tmpdir):
target.mkdir()
install_cmd = [
sys.executable,
'-m', 'easy_install',
'-d', str(target),
'-m', 'pip',
'install',
'-t', str(target),
str(pkg),
]
with test.test.paths_on_pythonpath([str(target)]):
Expand Down

0 comments on commit 4b0408a

Please sign in to comment.