Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r51568:6a0c4cca12c4 Date: 2012-01-21 14:11 +0200 http://bitbucket.org/pypy/pypy/changeset/6a0c4cca12c4/
Log: merge diff --git a/pypy/translator/goal/translate.py b/pypy/translator/goal/translate.py --- a/pypy/translator/goal/translate.py +++ b/pypy/translator/goal/translate.py @@ -293,17 +293,18 @@ drv.exe_name = targetspec_dic['__name__'] + '-%(backend)s' # Double check to ensure we are not overwriting the current interpreter - try: - this_exe = py.path.local(sys.executable).new(ext='') - exe_name = drv.compute_exe_name() - samefile = this_exe.samefile(exe_name) - assert not samefile, ( - 'Output file %s is the currently running ' - 'interpreter (use --output=...)'% exe_name) - except EnvironmentError: - pass + goals = translateconfig.goals + if not goals or 'compile' in goals: + try: + this_exe = py.path.local(sys.executable).new(ext='') + exe_name = drv.compute_exe_name() + samefile = this_exe.samefile(exe_name) + assert not samefile, ( + 'Output file %s is the currently running ' + 'interpreter (use --output=...)'% exe_name) + except EnvironmentError: + pass - goals = translateconfig.goals try: drv.proceed(goals) finally: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit