tools/upip.py: Remove unused op_basename() function.

It seems this was never used, at least not since its inclusion in this
repository.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-02-25 18:24:03 +11:00
parent 546e213265
commit 0a217624e1

View File

@ -41,10 +41,6 @@ def op_split(path):
return (head, r[1]) return (head, r[1])
def op_basename(path):
return op_split(path)[1]
# Expects *file* name # Expects *file* name
def _makedirs(name, mode=0o777): def _makedirs(name, mode=0o777):
ret = False ret = False
@ -205,7 +201,6 @@ def install_pkg(pkg_spec, install_path):
assert len(packages) == 1 assert len(packages) == 1
package_url = packages[0]["url"] package_url = packages[0]["url"]
print("Installing %s %s from %s" % (pkg_spec, latest_ver, package_url)) print("Installing %s %s from %s" % (pkg_spec, latest_ver, package_url))
package_fname = op_basename(package_url)
f1 = url_open(package_url) f1 = url_open(package_url)
try: try:
f2 = uzlib.DecompIO(f1, gzdict_sz) f2 = uzlib.DecompIO(f1, gzdict_sz)