360 # because of a distutils convert_path() fast-path. Avoid it at |
360 # because of a distutils convert_path() fast-path. Avoid it at |
361 # least on Windows for now, deal with .pydistutils.cfg bugs |
361 # least on Windows for now, deal with .pydistutils.cfg bugs |
362 # when they happen. |
362 # when they happen. |
363 nohome = '' |
363 nohome = '' |
364 cmd = ('%s setup.py %s clean --all' |
364 cmd = ('%s setup.py %s clean --all' |
|
365 ' build --build-base="%s"' |
365 ' install --force --prefix="%s" --install-lib="%s"' |
366 ' install --force --prefix="%s" --install-lib="%s"' |
366 ' --install-scripts="%s" %s >%s 2>&1' |
367 ' --install-scripts="%s" %s >%s 2>&1' |
367 % (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome, |
368 % (sys.executable, pure, os.path.join(HGTMP, "build"), |
368 installerrs)) |
369 INST, PYTHONDIR, BINDIR, nohome, installerrs)) |
369 vlog("# Running", cmd) |
370 vlog("# Running", cmd) |
370 if os.system(cmd) == 0: |
371 if os.system(cmd) == 0: |
371 if not options.verbose: |
372 if not options.verbose: |
372 os.remove(installerrs) |
373 os.remove(installerrs) |
373 else: |
374 else: |