Commit 2eb1007f authored by Jason R. Coombs's avatar Jason R. Coombs

Remove unused variable

parent 4842be21
...@@ -20,7 +20,6 @@ def require_metadata(): ...@@ -20,7 +20,6 @@ def require_metadata():
msg = "Cannot build setuptools without metadata. Run bootstrap.py" msg = "Cannot build setuptools without metadata. Run bootstrap.py"
raise RuntimeError(msg) raise RuntimeError(msg)
src_root = None
def read_commands(): def read_commands():
command_ns = {} command_ns = {}
...@@ -30,9 +29,6 @@ def read_commands(): ...@@ -30,9 +29,6 @@ def read_commands():
return command_ns['__all__'] return command_ns['__all__']
scripts = []
def _gen_console_scripts(): def _gen_console_scripts():
yield "easy_install = setuptools.command.easy_install:main" yield "easy_install = setuptools.command.easy_install:main"
...@@ -49,11 +45,7 @@ def _gen_console_scripts(): ...@@ -49,11 +45,7 @@ def _gen_console_scripts():
.format(shortver=sys.version[:3])) .format(shortver=sys.version[:3]))
console_scripts = list(_gen_console_scripts()) with io.open('README.rst', encoding='utf-8') as readme_file:
readme_file = io.open('README.rst', encoding='utf-8')
with readme_file:
long_description = readme_file.read() long_description = readme_file.read()
package_data = dict( package_data = dict(
...@@ -100,7 +92,7 @@ setup_params = dict( ...@@ -100,7 +92,7 @@ setup_params = dict(
long_description=long_description, long_description=long_description,
keywords="CPAN PyPI distutils eggs package management", keywords="CPAN PyPI distutils eggs package management",
url="https://github.com/pypa/setuptools", url="https://github.com/pypa/setuptools",
src_root=src_root, src_root=None,
packages=setuptools.find_packages(exclude=['*.tests']), packages=setuptools.find_packages(exclude=['*.tests']),
package_data=package_data, package_data=package_data,
...@@ -146,7 +138,7 @@ setup_params = dict( ...@@ -146,7 +138,7 @@ setup_params = dict(
"depends.txt = setuptools.command.egg_info:warn_depends_obsolete", "depends.txt = setuptools.command.egg_info:warn_depends_obsolete",
"dependency_links.txt = setuptools.command.egg_info:overwrite_arg", "dependency_links.txt = setuptools.command.egg_info:overwrite_arg",
], ],
"console_scripts": console_scripts, "console_scripts": list(_gen_console_scripts()),
"setuptools.installation": "setuptools.installation":
['eggsecutable = setuptools.command.easy_install:bootstrap'], ['eggsecutable = setuptools.command.easy_install:bootstrap'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment