Include `dist-info` folders after installing module
@@ -7,6 +7,7 @@ import re
import zipfile
import platform
from io import open
+from sys import __stdout__
import six
from six.moves import configparser
@@ -174,6 +175,14 @@ class TopLevelHandler(BaseHandler):
def handle_install(self, src, dest):
tltxtp = os.path.join(src, self.distinfo_name, "top_level.txt")
files_installed = []
+
+ try:
+ distinfo_name = self.distinfo_name
+ p = self.copytree(distinfo_name, os.path.join(src, distinfo_name), dest, remove=True)
+ files_installed.append(p)
+ except Exception as e:
+ __stdout__.write(str(e)+"\n")
+
with open(tltxtp, "r") as fin:
for pkg_name in fin:
pure = pkg_name.replace("\r", "").replace("\n", "")
