equal
deleted
inserted
replaced
283 # jython is always pure |
283 # jython is always pure |
284 if 'java' in sys.platform or '__pypy__' in sys.modules: |
284 if 'java' in sys.platform or '__pypy__' in sys.modules: |
285 options.pure = True |
285 options.pure = True |
286 |
286 |
287 if options.with_hg: |
287 if options.with_hg: |
288 options.with_hg = os.path.expanduser(options.with_hg) |
288 options.with_hg = os.path.realpath(os.path.expanduser(options.with_hg)) |
289 if not (os.path.isfile(options.with_hg) and |
289 if not (os.path.isfile(options.with_hg) and |
290 os.access(options.with_hg, os.X_OK)): |
290 os.access(options.with_hg, os.X_OK)): |
291 parser.error('--with-hg must specify an executable hg script') |
291 parser.error('--with-hg must specify an executable hg script') |
292 if not os.path.basename(options.with_hg) == 'hg': |
292 if not os.path.basename(options.with_hg) == 'hg': |
293 sys.stderr.write('warning: --with-hg should specify an hg script\n') |
293 sys.stderr.write('warning: --with-hg should specify an hg script\n') |