diff options
author | wbond <will@wbond.net> | 2018-04-17 15:25:40 -0400 |
---|---|---|
committer | wbond <will@wbond.net> | 2018-04-17 15:25:40 -0400 |
commit | 293c88bb010cd7d409aa51467ab8895c01a3c745 (patch) | |
tree | 944b4b90be5ecc14091767840f85a7ee9bbfdbb4 /dev | |
parent | 26eadaa20b77fad9879a7e0cf4f7851c612364ec (diff) | |
download | asn1crypto-293c88bb010cd7d409aa51467ab8895c01a3c745.tar.gz |
More tar fixes
Diffstat (limited to 'dev')
-rw-r--r-- | dev/deps.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/dev/deps.py b/dev/deps.py index 7abce46..1492f14 100644 --- a/dev/deps.py +++ b/dev/deps.py @@ -371,25 +371,16 @@ def _stage_requirements(deps_dir, path): # configparser, which are the two we currently require that # do not provide wheels base_path = pkg + '-' + version + '/' - base_py_path = base_path + pkg + '.py' base_pkg_path = base_path + pkg + '/' src_path = base_path + 'src/' - src_py_path = src_path + pkg + '.py' - src_pkg_path = src_path + pkg + '/' members = [] for ti in tf.getmembers(): fn = ti.name - if fn == src_py_path or fn == base_py_path: - members.append((ti, pkg + '.py')) - continue - if fn == src_py_path.replace('/', '\\') or fn == base_py_path.replace('/', '\\'): - members.append((ti, pkg + '.py')) - continue if fn.startswith(base_pkg_path) or fn.startswith(base_pkg_path.replace('/', '\\')): members.append((ti, fn[len(base_pkg_path) - len(pkg) - 1:].replace('\\', '/'))) continue - if fn.startswith(src_pkg_path) or fn.startswith(src_pkg_path.replace('/', '\\')): - members.append((ti, fn[len(src_pkg_path) - len(pkg) - 1:].replace('\\', '/'))) + if fn.startswith(src_path) or fn.startswith(src_path.replace('/', '\\')): + members.append((ti, fn[len(src_path):].replace('\\', '/'))) continue for ti, path in members: mf = tf.extractfile(ti) |