MCPcopy Create free account
hub / github.com/ipython/ipython / find_packages

Function find_packages

setupbase.py:91–106  ·  view source on GitHub ↗

Find all of IPython's packages.

()

Source from the content-addressed store, hash-verified

89#---------------------------------------------------------------------------
90
91def find_packages():
92 """
93 Find all of IPython's packages.
94 """
95 excludes = ['deathrow', 'quarantine']
96 packages = []
97 for dir,subdirs,files in os.walk('IPython'):
98 package = dir.replace(os.path.sep, '.')
99 if any(package.startswith('IPython.'+exc) for exc in excludes):
100 # package is to be excluded (e.g. deathrow)
101 continue
102 if '__init__.py' not in files:
103 # not a package
104 continue
105 packages.append(package)
106 return packages
107
108#---------------------------------------------------------------------------
109# Find package data

Callers 1

setup.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected