Show More
@@ -120,7 +120,13 b' def find_package_data():' | |||
|
120 | 120 | """ |
|
121 | 121 | # This is not enough for these things to appear in an sdist. |
|
122 | 122 | # We need to muck with the MANIFEST to get this to work |
|
123 | ||
|
123 | ||
|
124 | # exclude static things that we don't ship (e.g. mathjax) | |
|
125 | excludes = ['mathjax'] | |
|
126 | ||
|
127 | # add 'static/' prefix to exclusions, and tuplify for use in startswith | |
|
128 | excludes = tuple([os.path.join('static', ex) for ex in excludes]) | |
|
129 | ||
|
124 | 130 | # walk notebook resources: |
|
125 | 131 | cwd = os.getcwd() |
|
126 | 132 | os.chdir(os.path.join('IPython', 'frontend', 'html', 'notebook')) |
@@ -128,6 +134,8 b' def find_package_data():' | |||
|
128 | 134 | os.chdir(cwd) |
|
129 | 135 | static_data = [] |
|
130 | 136 | for parent, dirs, files in static_walk: |
|
137 | if parent.startswith(excludes): | |
|
138 | continue | |
|
131 | 139 | for f in files: |
|
132 | 140 | static_data.append(os.path.join(parent, f)) |
|
133 | 141 |
General Comments 0
You need to be logged in to leave comments.
Login now