equal
deleted
inserted
replaced
238 Extension('mercurial.parsers', ['mercurial/parsers.c']), |
238 Extension('mercurial.parsers', ['mercurial/parsers.c']), |
239 Extension('mercurial.osutil', ['mercurial/osutil.c']), |
239 Extension('mercurial.osutil', ['mercurial/osutil.c']), |
240 ] |
240 ] |
241 |
241 |
242 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', |
242 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', |
243 'hgext.highlight', 'hgext.zeroconf', ] |
243 'hgext.highlight', 'hgext.zeroconf'] |
244 |
244 |
245 if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
245 if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
246 # The inotify extension is only usable with Linux 2.6 kernels. |
246 # The inotify extension is only usable with Linux 2.6 kernels. |
247 # You also need a reasonably recent C library. |
247 # You also need a reasonably recent C library. |
248 cc = new_compiler() |
248 cc = new_compiler() |
255 'help/*.txt']} |
255 'help/*.txt']} |
256 |
256 |
257 def ordinarypath(p): |
257 def ordinarypath(p): |
258 return p and p[0] != '.' and p[-1] != '~' |
258 return p and p[0] != '.' and p[-1] != '~' |
259 |
259 |
260 for root in ('templates', ): |
260 for root in ('templates',): |
261 for curdir, dirs, files in os.walk(os.path.join('mercurial', root)): |
261 for curdir, dirs, files in os.walk(os.path.join('mercurial', root)): |
262 curdir = curdir.split(os.sep, 1)[1] |
262 curdir = curdir.split(os.sep, 1)[1] |
263 dirs[:] = filter(ordinarypath, dirs) |
263 dirs[:] = filter(ordinarypath, dirs) |
264 for f in filter(ordinarypath, files): |
264 for f in filter(ordinarypath, files): |
265 f = os.path.join(curdir, f) |
265 f = os.path.join(curdir, f) |