Commit 8f19ec37 authored by Samuele Pedroni's avatar Samuele Pedroni

port (by copying back) non doc/ updates from the release branch

parent 0a0cf9b9
License for files in the pypy/ directory
==================================================
Except when otherwise stated (look for LICENSE files in directories or
information at the beginning of each file) all software and
documentation in the 'pypy' directories is licensed as follows:
The MIT License
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
PyPy Copyright holders 2003-2005
-----------------------------------
Except when otherwise stated (look for LICENSE files or information at
the beginning of each file) the files in the 'pypy' directory are each
copyrighted by one or more of the following people and organizations:
Armin Rigo <arigo@tunes.org>
Samuele Pedroni <pedronis@strakt.com>
Holger Krekel <hpk@trillke.net>
Christian Tismer <tismer@tismer.com>
Michael Hudson <mwh@python.net>
Carl Friedrich Bolz <cfbolz@gmx.de>
Eric van Riet Paap <eric@vanrietpaap.nl>
Richard Emslie <rxe@ukshells.co.uk>
Anders Chrigstrom <ac@strakt.com>
Seo Sanghyeon <sanxiyn@gmail.com>
Alex Martelli <aleaxit@yahoo.com>
Anders Lehmann <serendipity-soft@get2net.dk>
Patrick Maupin <pmaupin@speakeasy.net>
Ludovic Aubry <ludovic.aubry@logilab.fr>
Bob Ippolito <bob@redivi.com>
Adrien Di Mascio <adim@logilab.fr>
Jacob Hallen <jacob@strakt.com>
Laura Creighton <lac@strakt.com>
Marius Gedminas <mgedmin@b4net.lt>
Niklaus Haldimann <nhaldimann@gmx.ch>
Jonathan David Riehl <jriehl@spaceship.com>
Guido van Rossum <guido@python.org>
Heinrich-Heine University, Germany
AB Strakt, Sweden
merlinux GmbH, Germany
tismerysoft GmbH, Germany
Logilab Paris, France
DFKI GmbH, Germany
License for 'lib-python/2.4.1' and 'lib-python/2.4.1-modified'
==============================================================
Except when otherwise stated (look for LICENSE files or
copyright/license information at the beginning of each file) the files
in the 'lib-python/2.4.1' and 'lib-python/2.4.1-modified' directories
are all copyrighted by the Python Software Foundation and licensed under
the Python Software License of which you can find a copy here:
http://www.python.org/doc/Copyright.html
=======================================================
PyPy: Python in Python implementation / Version 0.7.0
=======================================================
Welcome to PyPy! PyPy-0.7.0 marks the first public release
that allows to build a self-contained Python implementation
that does not depend or run on top of CPython anymore.
We invested a lot of time in improving the documentation and
website and thus invite you to head over to our getting-started
document
pypy/doc/getting-started.txt (local if you got a tarball)
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html
which gives you many good starting and entry points into
playing with PyPy. It will also point you to our
documentation section which is generated from information
in the pypy/doc directory.
Our online release announcement has some more
information about the specific PyPy-0.7.0 release:
pypy/doc/release-0.7.0.txt or
http://codespeak.net/pypy/dist/pypy/doc/release-0.7.0.html
Please note that the last 9 months of PyPy development
have been funded by the European Union through its research
programme.
Enjoy and send us feedback!
the pypy-dev team <pypy-dev@codespeak.net>
$Id$
$HeadURL$
"""
Version numbers exposed by PyPy through the 'sys' module.
"""
import os
from pypy.interpreter import autopath
CPYTHON_VERSION = (2, 4, 1, "alpha", 42)
CPYTHON_API_VERSION = 1012
PYPY_VERSION = (0, 7, 1, "alpha", '?')
# the last item is replaced by the svn revision ^^^
SVN_URL = "$HeadURL: http://codespeak.net/svn/pypy/dist/pypy/module/sys/version.py $"[10:-28]
# ____________________________________________________________
def get_api_version(space):
return space.wrap(CPYTHON_API_VERSION)
def get_version_info(space):
return space.wrap(CPYTHON_VERSION)
def get_version(space):
return space.wrap("%d.%d.%d (pypy %d.%d.%d build %d)" % (
CPYTHON_VERSION[0],
CPYTHON_VERSION[1],
CPYTHON_VERSION[2],
PYPY_VERSION[0],
PYPY_VERSION[1],
PYPY_VERSION[2],
svn_revision()))
def get_hexversion(space):
return space.wrap(tuple2hex(CPYTHON_VERSION))
def get_pypy_version_info(space):
ver = PYPY_VERSION
ver = ver[:-1] + (svn_revision(),)
return space.wrap(ver)
def get_svn_url(space):
return space.wrap((SVN_URL, svn_revision()))
def tuple2hex(ver):
d = {'alpha': 0xA,
'beta': 0xB,
'candidate': 0xC,
'final': 0xF,
}
subver = ver[4]
if not (0 <= subver <= 9):
subver = 0
return (ver[0] << 24 |
ver[1] << 16 |
ver[2] << 8 |
d[ver[3]] << 4 |
subver)
def svn_revision():
"Return the last-changed svn revision number."
# NB. we hack the number directly out of the .svn directory to avoid
# to depend on an external 'svn' executable in the path.
rev = 0
try:
f = open(os.path.join(autopath.pypydir, '.svn', 'entries'), 'r')
for line in f:
line = line.strip()
if line.startswith('committed-rev="') and line.endswith('"'):
rev = int(line[15:-1])
break
f.close()
except (IOError, OSError):
pass
return rev
import py
log = py.log.Producer("log")
logexec = py.log.Producer("exec")
BASEURL = "file:///svn/pypy/release/0.7.x"
DDIR = py.path.local('/www/codespeak.net/htdocs/download/pypy')
def usage():
print "usage: %s versionbasename" %(py.std.argv[0])
raise SystemExit, 1
def cexec(cmd):
logexec(cmd)
return py.process.cmdexec(cmd)
def maketargz(target):
targz = target + ".tar.gz"
basename = target.basename
old = target.dirpath().chdir()
try:
out = cexec("tar zcvf %(targz)s %(basename)s" % locals())
finally:
old.chdir()
assert targz.check(file=1)
assert targz.size() > 0
return targz
def maketarbzip(target):
targz = target + ".tar.bz2"
basename = target.basename
old = target.dirpath().chdir()
try:
out = cexec("tar jcvf %(targz)s %(basename)s" % locals())
finally:
old.chdir()
assert targz.check(file=1)
assert targz.size() > 0
return targz
def makezip(target):
tzip = target + ".zip"
if tzip.check(file=1):
log("removing", tzip)
tzip.remove()
basename = target.basename
old = target.dirpath().chdir()
try:
out = cexec("zip -r9 %(tzip)s %(basename)s" % locals())
finally:
old.chdir()
assert tzip.check(file=1)
assert tzip.size() > 0
return tzip
def copydownload(fn):
log("copying to download location")
#fn.copy(dtarget)
ddir = DDIR
out = cexec("rsync %(fn)s code2.codespeak.net:%(ddir)s"
% locals())
def forced_export(BASEURL, target, lineend="LF"):
if target.check(dir=1):
log("removing", target)
target.remove()
out = cexec("svn export --native-eol %s %s %s"
%(lineend, BASEURL, target))
assert target.check(dir=1)
if __name__ == '__main__':
argc = len(py.std.sys.argv)
if argc < 1:
usage()
ver = py.std.sys.argv[1]
tmpdir = py.path.local("/tmp/pypy-release")
target = tmpdir.join(ver)
forced_export(BASEURL, target, lineend="LF")
target_targz = maketargz(target)
assert target_targz.check(file=1)
copydownload(target_targz)
target_tarbzip = maketarbzip(target)
assert target_tarbzip.check(file=1)
copydownload(target_tarbzip)
forced_export(BASEURL, target, lineend="CRLF")
target_zip = makezip(target)
assert target_zip.check(file=1)
copydownload(target_zip)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment