Skip to content

Commit

Permalink
Remove unused find_package_dirs function (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Nov 7, 2020
1 parent cbb059d commit 42a1e56
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions auditwheel/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import shutil
from glob import glob
from os.path import exists, isdir
from os.path import join as pjoin
import zipfile
import subprocess
Expand Down Expand Up @@ -82,28 +81,6 @@ def tarbz2todir(tarbz2_fname, out_dir):
subprocess.check_output(['tar', 'xjf', tarbz2_fname, '-C', out_dir])


def find_package_dirs(root_path):
"""Find python package directories in directory `root_path`
Parameters
----------
root_path : str
Directory to search for package subdirectories
Returns
-------
package_sdirs : set
Set of strings where each is a subdirectory of `root_path`, containing
an ``__init__.py`` file. Paths prefixed by `root_path`
"""
package_sdirs = set()
for entry in os.listdir(root_path):
fname = entry if root_path == '.' else pjoin(root_path, entry)
if isdir(fname) and exists(pjoin(fname, '__init__.py')):
package_sdirs.add(fname)
return package_sdirs


class EnvironmentDefault(argparse.Action):
"""Get values from environment variable."""

Expand Down

0 comments on commit 42a1e56

Please sign in to comment.