Commit 19d79d2f authored by Jason R. Coombs's avatar Jason R. Coombs

Extract method for fixing namespace packages

parent f8d08c39
'''Wheels support.'''
"""Wheels support."""
from distutils.util import get_platform
import email
......@@ -181,7 +181,10 @@ class Wheel(object):
unpack(subdir, destination_eggdir)
if os.path.exists(dist_data):
os.rmdir(dist_data)
# Fix namespace packages.
self._fix_namespace_packages(egg_info, destination_eggdir)
@staticmethod
def _fix_namespace_packages(egg_info, destination_eggdir):
namespace_packages = os.path.join(
egg_info, 'namespace_packages.txt')
if os.path.exists(namespace_packages):
......
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