Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r73925:01b209cd50a3 Date: 2014-10-13 11:10 -0700 http://bitbucket.org/pypy/pypy/changeset/01b209cd50a3/
Log: issue1796: mimic CPython's binary naming (along the lines of PEP394), make it 'pypy3.2' on posix w/ a 'pypy3' symlink, and keep it as pypy.exe on Windows for now diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py --- a/pypy/tool/release/package.py +++ b/pypy/tool/release/package.py @@ -26,6 +26,9 @@ STDLIB_VER = "3" +# XXX: don't hardcode the version +POSIX_EXE = 'pypy3.2' + def ignore_patterns(*patterns): """Function that can be used as copytree() ignore parameter. @@ -251,6 +254,14 @@ for source, target in binaries: archive = bindir.join(target) shutil.copy(str(source), str(archive)) + if not sys.platform == 'win32': + # create the pypy3 symlink + old_dir = os.getcwd() + os.chdir(str(bindir)) + try: + os.symlink(POSIX_EXE, 'pypy3') + finally: + os.chdir(old_dir) fix_permissions(builddir) old_dir = os.getcwd() @@ -306,7 +317,7 @@ import imp argparse = imp.load_source('argparse', 'lib-python/2.7/argparse.py') if sys.platform == 'win32': - pypy_exe = 'pypy3.exe' + pypy_exe = 'pypy.exe' for p in [os.path.join(basedir, r'..\..\..\local'), #buildbot os.path.join(basedir, r'..\local')]: # pypy/doc/windows.rst if os.path.exists(p): @@ -315,7 +326,7 @@ else: license_base = 'unkown' else: - pypy_exe = 'pypy3' + pypy_exe = POSIX_EXE license_base = '/usr/share/doc' parser = argparse.ArgumentParser() args = list(args) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit