Skip to content

Commit f399554

Browse files
committed
Remove unused find_package_dirs function
1 parent cbb059d commit f399554

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

auditwheel/tools.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import shutil
44
from glob import glob
5-
from os.path import exists, isdir
65
from os.path import join as pjoin
76
import zipfile
87
import subprocess
@@ -82,28 +81,6 @@ def tarbz2todir(tarbz2_fname, out_dir):
8281
subprocess.check_output(['tar', 'xjf', tarbz2_fname, '-C', out_dir])
8382

8483

85-
def find_package_dirs(root_path):
86-
"""Find python package directories in directory `root_path`
87-
88-
Parameters
89-
----------
90-
root_path : str
91-
Directory to search for package subdirectories
92-
93-
Returns
94-
-------
95-
package_sdirs : set
96-
Set of strings where each is a subdirectory of `root_path`, containing
97-
an ``__init__.py`` file. Paths prefixed by `root_path`
98-
"""
99-
package_sdirs = set()
100-
for entry in os.listdir(root_path):
101-
fname = entry if root_path == '.' else pjoin(root_path, entry)
102-
if isdir(fname) and exists(pjoin(fname, '__init__.py')):
103-
package_sdirs.add(fname)
104-
return package_sdirs
105-
106-
10784
class EnvironmentDefault(argparse.Action):
10885
"""Get values from environment variable."""
10986

0 commit comments

Comments
 (0)