diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:18:48 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:19:40 -0400 |
commit | ad676fe418b22c894385f8d1316f2a60d8d1a291 (patch) | |
tree | 73cb8084e70be55ff1b260b99cd7bd0d729df25f | |
parent | 19d79d2f9fef6b9e024a1352ed51f9b7d829b768 (diff) | |
download | external_python_setuptools-ad676fe418b22c894385f8d1316f2a60d8d1a291.tar.gz external_python_setuptools-ad676fe418b22c894385f8d1316f2a60d8d1a291.tar.bz2 external_python_setuptools-ad676fe418b22c894385f8d1316f2a60d8d1a291.zip |
Extract method for _move_data_entries
-rw-r--r-- | setuptools/wheel.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/setuptools/wheel.py b/setuptools/wheel.py index a64aa5bf..e3d807c1 100644 --- a/setuptools/wheel.py +++ b/setuptools/wheel.py @@ -156,7 +156,12 @@ class Wheel(object): None, os.path.join(egg_info, 'requires.txt'), ) - # Move data entries to their correct location. + self._move_data_entries(destination_eggdir, dist_data) + self._fix_namespace_packages(egg_info, destination_eggdir) + + @staticmethod + def _move_data_entries(destination_eggdir, dist_data): + """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): @@ -181,7 +186,6 @@ class Wheel(object): unpack(subdir, destination_eggdir) if os.path.exists(dist_data): os.rmdir(dist_data) - self._fix_namespace_packages(egg_info, destination_eggdir) @staticmethod def _fix_namespace_packages(egg_info, destination_eggdir): |