Commit 09ca40cc authored by Jason R. Coombs's avatar Jason R. Coombs

Refactor setup script for nicer indentation and readability.

parent 145acd3c
......@@ -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'])
......
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