diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 13:22:14 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 13:22:14 -0400 |
| commit | 09ca40cc931c611952d344b96d1d6a5bfd6b502c (patch) | |
| tree | e4e46df4060a4e45e11ea5ba7e034d2d2190647b /setup.py | |
| parent | 145acd3ccfb7aac2b9658ce8ef4f5cb3fa265d94 (diff) | |
| download | python-setuptools-git-09ca40cc931c611952d344b96d1d6a5bfd6b502c.tar.gz | |
Refactor setup script for nicer indentation and readability.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -56,14 +56,22 @@ readme_file = io.open('README.rst', encoding='utf-8') with readme_file: long_description = readme_file.read() -package_data = { - 'setuptools': ['script (dev).tmpl', 'script.tmpl', 'site-patch.py']} +package_data = dict( + setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'], +) + force_windows_specific_files = ( os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES") not in (None, "", "0") ) -if (sys.platform == 'win32' or (os.name == 'java' and os._name == 'nt')) \ - or force_windows_specific_files: + +include_windows_files = ( + sys.platform == 'win32' or + os.name == 'java' and os._name == 'nt' or + force_windows_specific_files +) + +if include_windows_files: package_data.setdefault('setuptools', []).extend(['*.exe']) package_data.setdefault('setuptools.command', []).extend(['*.xml']) @@ -76,7 +84,7 @@ setup_params = dict( name="setuptools", version="25.0.0", description="Easily download, build, install, upgrade, and uninstall " - "Python packages", + "Python packages", author="Python Packaging Authority", author_email="distutils-sig@python.org", long_description=long_description, |
