##// END OF EJS Templates
Fix bug in our specification of data_files....
Fernando Perez -
Show More
@@ -175,9 +175,9 b' def make_dir_struct(tag,base,out_base):'
175 # filenames, we must join back with the dirpath to get full valid file
175 # filenames, we must join back with the dirpath to get full valid file
176 # paths:
176 # paths:
177 pfiles = [pjoin(dirpath,f) for f in filenames]
177 pfiles = [pjoin(dirpath,f) for f in filenames]
178 # Finally, generate the entry we need, which is a triple of (tag,output
178 # Finally, generate the entry we need, which is a pari of (output
179 # path, files) for use as a data_files parameter in install_data.
179 # path, files) for use as a data_files parameter in install_data.
180 out.append((tag,out_path,pfiles))
180 out.append((out_path, pfiles))
181
181
182 return out
182 return out
183
183
@@ -194,7 +194,8 b' def find_data_files():'
194
194
195 # Simple file lists can be made by hand
195 # Simple file lists can be made by hand
196 manpages = filter(isfile, glob(pjoin('docs','man','*.1.gz')))
196 manpages = filter(isfile, glob(pjoin('docs','man','*.1.gz')))
197 igridhelpfiles = filter(isfile, glob(pjoin('IPython','extensions','igrid_help.*')))
197 igridhelpfiles = filter(isfile,
198 glob(pjoin('IPython','extensions','igrid_help.*')))
198
199
199 # For nested structures, use the utility above
200 # For nested structures, use the utility above
200 example_files = make_dir_struct(
201 example_files = make_dir_struct(
@@ -209,8 +210,8 b' def find_data_files():'
209 )
210 )
210
211
211 # And assemble the entire output list
212 # And assemble the entire output list
212 data_files = [ ('data',manpagebase, manpages),
213 data_files = [ (manpagebase, manpages),
213 ('data',pjoin(docdirbase,'extensions'),igridhelpfiles),
214 (pjoin(docdirbase, 'extensions'), igridhelpfiles),
214 ] + manual_files + example_files
215 ] + manual_files + example_files
215
216
216 ## import pprint # dbg
217 ## import pprint # dbg
General Comments 0
You need to be logged in to leave comments. Login now