##// END OF EJS Templates
exclude mathjax from notebook package_data...
MinRK -
Show More
@@ -120,7 +120,13 b' def find_package_data():'
120 """
120 """
121 # This is not enough for these things to appear in an sdist.
121 # This is not enough for these things to appear in an sdist.
122 # We need to muck with the MANIFEST to get this to work
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 # walk notebook resources:
130 # walk notebook resources:
125 cwd = os.getcwd()
131 cwd = os.getcwd()
126 os.chdir(os.path.join('IPython', 'frontend', 'html', 'notebook'))
132 os.chdir(os.path.join('IPython', 'frontend', 'html', 'notebook'))
@@ -128,6 +134,8 b' def find_package_data():'
128 os.chdir(cwd)
134 os.chdir(cwd)
129 static_data = []
135 static_data = []
130 for parent, dirs, files in static_walk:
136 for parent, dirs, files in static_walk:
137 if parent.startswith(excludes):
138 continue
131 for f in files:
139 for f in files:
132 static_data.append(os.path.join(parent, f))
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