Find IPython's data_files. Just man pages at this point.
()
| 156 | #--------------------------------------------------------------------------- |
| 157 | |
| 158 | def find_data_files(): |
| 159 | """ |
| 160 | Find IPython's data_files. |
| 161 | |
| 162 | Just man pages at this point. |
| 163 | """ |
| 164 | |
| 165 | if "freebsd" in sys.platform: |
| 166 | manpagebase = pjoin('man', 'man1') |
| 167 | else: |
| 168 | manpagebase = pjoin('share', 'man', 'man1') |
| 169 | |
| 170 | # Simple file lists can be made by hand |
| 171 | manpages = [f for f in glob(pjoin('docs','man','*.1.gz')) if isfile(f)] |
| 172 | if not manpages: |
| 173 | # When running from a source tree, the manpages aren't gzipped |
| 174 | manpages = [f for f in glob(pjoin('docs','man','*.1')) if isfile(f)] |
| 175 | |
| 176 | # And assemble the entire output list |
| 177 | data_files = [ (manpagebase, manpages) ] |
| 178 | |
| 179 | return data_files |
| 180 | |
| 181 | |
| 182 | # The two functions below are copied from IPython.utils.path, so we don't need |