Show More
@@ -149,13 +149,13 b' def find_package_data():' | |||
|
149 | 149 | static_data.extend([ |
|
150 | 150 | pjoin(components, "backbone", "backbone-min.js"), |
|
151 | 151 | pjoin(components, "bootstrap", "bootstrap", "js", "bootstrap.min.js"), |
|
152 | pjoin(components, "font-awesome", "build", "assets", "font", "*.*"), | |
|
152 | pjoin(components, "font-awesome", "build", "assets", "font-awesome", "font", "*.*"), | |
|
153 | 153 | pjoin(components, "highlight.js", "build", "highlight.pack.js"), |
|
154 | 154 | pjoin(components, "jquery", "jquery.min.js"), |
|
155 | 155 | pjoin(components, "jquery-ui", "ui", "minified", "jquery-ui.min.js"), |
|
156 | 156 | pjoin(components, "jquery-ui", "themes", "smoothness", "jquery-ui.min.css"), |
|
157 | 157 | pjoin(components, "marked", "lib", "marked.js"), |
|
158 | pjoin(components, "require", "require.js"), | |
|
158 | pjoin(components, "requirejs", "require.js"), | |
|
159 | 159 | pjoin(components, "underscore", "underscore-min.js"), |
|
160 | 160 | ]) |
|
161 | 161 | |
@@ -178,7 +178,6 b' def find_package_data():' | |||
|
178 | 178 | 'IPython.config.profile' : ['README*', '*/*.py'], |
|
179 | 179 | 'IPython.core.tests' : ['*.png', '*.jpg'], |
|
180 | 180 | 'IPython.lib.tests' : ['*.wav'], |
|
181 | 'IPython.testing' : ['*.txt'], | |
|
182 | 181 | 'IPython.testing.plugin' : ['*.txt'], |
|
183 | 182 | 'IPython.html' : ['templates/*'] + static_data, |
|
184 | 183 | 'IPython.html.tests' : js_tests, |
@@ -188,6 +187,17 b' def find_package_data():' | |||
|
188 | 187 | 'IPython.nbconvert.filters' : ['marked.js'], |
|
189 | 188 | 'IPython.nbformat' : ['tests/*.ipynb'] |
|
190 | 189 | } |
|
190 | ||
|
191 | # verify that package_data makes sense | |
|
192 | for pkg, data in package_data.items(): | |
|
193 | pkg_root = pjoin(*pkg.split('.')) | |
|
194 | for d in data: | |
|
195 | path = pjoin(pkg_root, d) | |
|
196 | if '*' in path: | |
|
197 | assert len(glob(path)) > 0, "No files match pattern %s" % path | |
|
198 | else: | |
|
199 | assert os.path.exists(path), "Missing package data: %s" % path | |
|
200 | ||
|
191 | 201 | return package_data |
|
192 | 202 | |
|
193 | 203 |
General Comments 0
You need to be logged in to leave comments.
Login now