summaryrefslogtreecommitdiff
path: root/setuptools/wheel.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:15:11 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:15:11 -0400
commitf8d08c3929e7645ba134598793076d2a7d55344c (patch)
treeff4031418267ea0317c9f77c5646a59ce0a8ce74 /setuptools/wheel.py
parent169639bd253b55bbc4ef021a666c57b6029d3c5f (diff)
downloadpython-setuptools-git-f8d08c3929e7645ba134598793076d2a7d55344c.tar.gz
Avoid hanging indents
Diffstat (limited to 'setuptools/wheel.py')
-rw-r--r--setuptools/wheel.py41
1 files changed, 26 insertions, 15 deletions
diff --git a/setuptools/wheel.py b/setuptools/wheel.py
index 193edafd..920bb6f0 100644
--- a/setuptools/wheel.py
+++ b/setuptools/wheel.py
@@ -64,9 +64,11 @@ class Wheel(object):
def tags(self):
'''List tags (py_version, abi, platform) supported by this wheel.'''
- return itertools.product(self.py_version.split('.'),
- self.abi.split('.'),
- self.platform.split('.'))
+ return itertools.product(
+ self.py_version.split('.'),
+ self.abi.split('.'),
+ self.platform.split('.'),
+ )
def is_compatible(self):
'''Is the wheel is compatible with the current platform?'''
@@ -139,20 +141,27 @@ class Wheel(object):
}
egg_info = os.path.join(destination_eggdir, 'EGG-INFO')
os.rename(dist_info, egg_info)
- os.rename(os.path.join(egg_info, 'METADATA'),
- os.path.join(egg_info, 'PKG-INFO'))
- setup_dist = SetuptoolsDistribution(attrs=dict(
- install_requires=install_requires,
- extras_require=extras_require,
- ))
- write_requirements(setup_dist.get_command_obj('egg_info'),
- None, os.path.join(egg_info, 'requires.txt'))
+ os.rename(
+ os.path.join(egg_info, 'METADATA'),
+ os.path.join(egg_info, 'PKG-INFO'),
+ )
+ setup_dist = SetuptoolsDistribution(
+ attrs=dict(
+ install_requires=install_requires,
+ extras_require=extras_require,
+ ),
+ )
+ write_requirements(
+ setup_dist.get_command_obj('egg_info'),
+ None,
+ os.path.join(egg_info, 'requires.txt'),
+ )
# Move data entries to their correct location.
dist_data = os.path.join(destination_eggdir, dist_data)
dist_data_scripts = os.path.join(dist_data, 'scripts')
if os.path.exists(dist_data_scripts):
- egg_info_scripts = os.path.join(destination_eggdir,
- 'EGG-INFO', 'scripts')
+ egg_info_scripts = os.path.join(
+ destination_eggdir, 'EGG-INFO', 'scripts')
os.mkdir(egg_info_scripts)
for entry in os.listdir(dist_data_scripts):
# Remove bytecode, as it's not properly handled
@@ -160,8 +169,10 @@ class Wheel(object):
if entry.endswith('.pyc'):
os.unlink(os.path.join(dist_data_scripts, entry))
else:
- os.rename(os.path.join(dist_data_scripts, entry),
- os.path.join(egg_info_scripts, entry))
+ os.rename(
+ os.path.join(dist_data_scripts, entry),
+ os.path.join(egg_info_scripts, entry),
+ )
os.rmdir(dist_data_scripts)
for subdir in filter(os.path.exists, (
os.path.join(dist_data, d)