MCPcopy Index your code
hub / github.com/microsoft/SandDance / find_packages

Function find_packages

python/jupyter-widget/setupbase.py:109–120  ·  view source on GitHub ↗

Find all of the packages.

(top=HERE)

Source from the content-addressed store, hash-verified

107
108
109def find_packages(top=HERE):
110 """
111 Find all of the packages.
112 """
113 packages = []
114 for d, dirs, _ in os.walk(top, followlinks=True):
115 if os.path.exists(pjoin(d, '__init__.py')):
116 packages.append(os.path.relpath(d, top).replace(os.path.sep, '.'))
117 elif d != top:
118 # Do not look for packages in subfolders if current is not a package
119 dirs[:] = []
120 return packages
121
122
123def update_package_data(distribution):

Callers 1

setup.pyFile · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected