Show More
@@ -66,28 +66,6 b' setup_args = dict(' | |||||
66 | license = license, |
|
66 | license = license, | |
67 | ) |
|
67 | ) | |
68 |
|
68 | |||
69 |
|
||||
70 | #--------------------------------------------------------------------------- |
|
|||
71 | # Find packages |
|
|||
72 | #--------------------------------------------------------------------------- |
|
|||
73 |
|
||||
74 | def find_packages(): |
|
|||
75 | """ |
|
|||
76 | Find all of IPython's packages. |
|
|||
77 | """ |
|
|||
78 | excludes = ['deathrow', 'quarantine'] |
|
|||
79 | packages = [] |
|
|||
80 | for directory, subdirs, files in os.walk("IPython"): |
|
|||
81 | package = directory.replace(os.path.sep, ".") |
|
|||
82 | if any(package.startswith("IPython." + exc) for exc in excludes): |
|
|||
83 | # package is to be excluded (e.g. deathrow) |
|
|||
84 | continue |
|
|||
85 | if '__init__.py' not in files: |
|
|||
86 | # not a package |
|
|||
87 | continue |
|
|||
88 | packages.append(package) |
|
|||
89 | return packages |
|
|||
90 |
|
||||
91 | #--------------------------------------------------------------------------- |
|
69 | #--------------------------------------------------------------------------- | |
92 | # Check package data |
|
70 | # Check package data | |
93 | #--------------------------------------------------------------------------- |
|
71 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now