Find all of IPython's packages.
()
| 89 | #--------------------------------------------------------------------------- |
| 90 | |
| 91 | def 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 |