[pypy-svn] r51323 - in pypy/build/debian: . debian debian/manpages debian/patches debian/scripts
lamby at codespeak.net
lamby at codespeak.net
Thu Feb 7 19:46:38 CET 2008
Author: lamby
Date: Thu Feb 7 19:46:37 2008
New Revision: 51323
Added:
pypy/build/debian/
pypy/build/debian/debian/
pypy/build/debian/debian/Makefile.in
pypy/build/debian/debian/changelog
pypy/build/debian/debian/compat
pypy/build/debian/debian/configure.py
pypy/build/debian/debian/control
pypy/build/debian/debian/copyright
pypy/build/debian/debian/manpages/
pypy/build/debian/debian/manpages/jscompile.1
pypy/build/debian/debian/manpages/py.py.1
pypy/build/debian/debian/manpages/pypy-stackless.1
pypy/build/debian/debian/manpages/pypy-translate.1
pypy/build/debian/debian/manpages/pypy.1
pypy/build/debian/debian/patches/
pypy/build/debian/debian/patches/01-package-specific-temp-prefix
pypy/build/debian/debian/patches/02-mips-support
pypy/build/debian/debian/patches/series
pypy/build/debian/debian/pypy-dev.dirs
pypy/build/debian/debian/pypy-dev.install
pypy/build/debian/debian/pypy-dev.links
pypy/build/debian/debian/pypy-dev.manpages
pypy/build/debian/debian/pypy-dev.override
pypy/build/debian/debian/pypy-dev.postinst
pypy/build/debian/debian/pypy-dev.prerm
pypy/build/debian/debian/pypy-doc.docs
pypy/build/debian/debian/pypy-lib.dirs
pypy/build/debian/debian/pypy-lib.install
pypy/build/debian/debian/pypy-lib.links
pypy/build/debian/debian/pypy-lib.override
pypy/build/debian/debian/pypy-logic.install
pypy/build/debian/debian/pypy-stackless.install
pypy/build/debian/debian/pypy-stackless.manpages
pypy/build/debian/debian/pypy.install
pypy/build/debian/debian/pypy.manpages
pypy/build/debian/debian/rules (contents, props changed)
pypy/build/debian/debian/scripts/
pypy/build/debian/debian/scripts/jscompile
pypy/build/debian/debian/scripts/py.py
pypy/build/debian/debian/scripts/pypy-translate
Log:
Import Debian packaging for building the (upcoming) 1.0.0-svn51288-1 package.
Added: pypy/build/debian/debian/Makefile.in
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/Makefile.in Thu Feb 7 19:46:37 2008
@@ -0,0 +1,44 @@
+TARGET=pypy/translator/goal/targetpypystandalone
+
+TRANSLATE=pypy/translator/goal/translate.py
+TRANSLATEOPTS=--text --batch -b c --source --thread
+TARGETOPTS=%(TARGETOPTS)s
+TARGETOPTS_STACKLESS=%(TARGETOPTS_STACKLESS)s
+PREFIX=%(PREFIX)s
+OUTPUTDIR=debian/tmp/usr/bin
+STACKLESS=--stackless
+LOGIC=-o logic
+
+BINARIES=bin/pypy bin/pypy-stackless
+
+all: $(BINARIES)
+
+.NOTPARALLEL: $(BINARIES)
+
+bin/pypy: export TMPDIR = $(CURDIR)/build-default
+bin/pypy:
+ @rm -rf $(TMPDIR)
+ mkdir $(TMPDIR)
+ $(TRANSLATE) $(TRANSLATEOPTS) $(TARGET) $(TARGETOPTS)
+ make -C $(TMPDIR)/debian-pypy-usession-0/testing_1
+ install -D $(TMPDIR)/debian-pypy-usession-0/testing_1/testing_1 $@
+
+bin/pypy-stackless: export TMPDIR = $(CURDIR)/build-stackless
+bin/pypy-stackless:
+ @rm -rf $(TMPDIR)
+ mkdir $(TMPDIR)
+ $(TRANSLATE) $(TRANSLATEOPTS) $(STACKLESS) $(TARGET) $(TARGETOPTS_STACKLESS)
+ make -C $(TMPDIR)/debian-pypy-usession-0/testing_1
+ install -D $(TMPDIR)/debian-pypy-usession-0/testing_1/testing_1 $@
+
+clean:
+ rm -rf bin
+ rm -rf build-*
+ rm -rf pypy/_cache
+ rm -rf py/c-extension/greenlet/build
+ rm -f py/c-extension/greenlet/greenlet.so
+ find . -name "*.pyc" | xargs rm -f
+
+install: all
+ install -d $(PREFIX)/bin
+ install $(BINARIES) $(PREFIX)/bin
Added: pypy/build/debian/debian/changelog
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/changelog Thu Feb 7 19:46:37 2008
@@ -0,0 +1,82 @@
+pypy (1.0.0-svn51288-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #459118)
+ * New maintainer. (Closes: #455734)
+ * Bump debhelper compatibility version.
+ * Refresh and tidy package descriptions.
+ * Tidy debian/configure.py, debian/rules, Lintian overrides.
+ * Add pypy(1), py.py(1), pypy-translate(1), jscompile(1) and
+ pypy-stackless(1) manpages.
+ * Add get-orig-source target in debian/rules.
+ * Use quilt to manage Thiemo Seufer's MIPS and MIPSEL patch.
+ * Use PyPy-specific temporary directory prefixes. (Closes: #452851)
+
+ -- Chris Lamb <chris at chris-lamb.co.uk> Tue, 05 Feb 2008 13:26:11 +0000
+
+pypy (1.0.0-svn51091-1) unstable; urgency=low
+
+ * New upstream svn snapshot, fixing 64bit build (closes: #462008)
+
+ -- Alexandre Fayolle <afayolle at debian.org> Mon, 28 Jan 2008 09:40:48 +0100
+
+pypy (1.0.0-svn50146-2) unstable; urgency=low
+
+ * Added missing build dependency on zlib1g-dev (closes: #460696)
+
+ -- Alexandre Fayolle <afayolle at debian.org> Mon, 14 Jan 2008 18:15:32 +0100
+
+pypy (1.0.0-svn50146-1) unstable; urgency=low
+
+ * Acknowledge NMU (closes: #431197)
+ * Apply Yaroslav Hachenko's patch to use more recent svn snapshot, and
+ enable threading support (closes: #458953)
+ * Apply Thiemo Seufer's patch to enable mips and mipsel support
+ (closes: #459520)
+ * Added build dep on procps (closes: #444652)
+ * Bumped up standards to 3.7.3
+ * Note that pypy is currently under ITA: I lack time to properly follow
+ upstream developments, and all patches and NMU's are welcome. If you'd
+ like to adopt pypy, just send me an email to notify me and jump for
+ it. Offers to co-maintain are welcome too. Thanks.
+ -- Alexandre Fayolle <afayolle at debian.org> Mon, 14 Jan 2008 09:46:11 +0100
+
+pypy (1.0.0-3.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Disable build of upstream removed logic object space. Remove pypy-logic
+ package. (closes: #442060)
+ * Move build output away from /tmp. (closes: #452850)
+ * Move compile step out of the main translation. This reduces the memory
+ footprint by one third.
+
+ -- Bastian Blank <waldi at debian.org> Tue, 27 Nov 2007 12:08:06 +0000
+
+pypy (1.0.0-3) unstable; urgency=low
+
+ * Use more conservative options for platforms for which support is uncertain
+ * Enable check of available memory during configuration
+ * Packages are once again arch: any
+
+ -- Alexandre.Fayolle <afayolle at debian.org> Wed, 18 Jul 2007 12:57:28 +0200
+
+pypy (1.0.0-2) unstable; urgency=low
+
+ * Updated debian/copyright (Closes: #423603)
+ * Removed support for archs not supported upstream (Closes: #426265, #423725)
+ * Adds missing conftest.py (Closes: #428539)
+
+ -- Alexandre.Fayolle <afayolle at debian.org> Thu, 28 Jun 2007 12:25:53 +0200
+
+pypy (1.0.0-1) unstable; urgency=low
+
+ * Fixed debian/copyright and reupload (Closes: #326892)
+ * New upstream release
+
+ -- Alexandre Fayolle <afayolle at debian.org> Fri, 13 Apr 2007 09:33:09 +0200
+
+pypy (0.99.0-1) experimental; urgency=low
+
+ * Initial release (Closes: #326892)
+
+ -- Alexandre Fayolle <afayolle at debian.org> Mon, 19 Feb 2007 10:47:33 +0100
+
Added: pypy/build/debian/debian/compat
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/compat Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+6
Added: pypy/build/debian/debian/configure.py
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/configure.py Thu Feb 7 19:46:37 2008
@@ -0,0 +1,70 @@
+import getopt
+import sys
+import os
+
+MEMTHRESHOLD = 1024
+
+LOWMEM = """\
+The translation of pypy requires a large amount of physical
+memory. Our tests show that on a system with less than %dMB of RAM,
+the translation process will cause heavy thrashing of the hard drive and take days to complete. """ % MEMTHRESHOLD
+
+def check_memory(exit=False):
+ stream = os.popen('free -mo')
+ try:
+ for line in stream:
+ if line.startswith('Mem:'):
+ memory = int(line.split()[1])
+ print "Detected %d MB of memory" % memory
+ if memory < MEMTHRESHOLD and exit:
+ print LOWMEM
+ sys.exit('Aborting: not enough memory available')
+ finally:
+ stream.close()
+
+
+def gen_make(make_in, build_arch, host_arch, prefix):
+ options = {'default': {'TARGETOPTS': '--allworkingmodules',
+ 'TARGETOPTS_STACKLESS': '--allworkingmodules',
+ 'TARGETOPTS_LOGIC': '--allworkingmodules',
+ },
+
+ 'i386': {'TARGETOPTS': '--allworkingmodules --faassen',
+ 'TARGETOPTS_STACKLESS': '--allworkingmodules --faassen',
+ 'TARGETOPTS_LOGIC': '--allworkingmodules',
+ },
+
+ 'amd64':{'TARGETOPTS': '--allworkingmodules --faassen',
+ 'TARGETOPTS_STACKLESS': '--allworkingmodules',
+ 'TARGETOPTS_LOGIC': '--allworkingmodules',
+ },
+ }
+ substitutions = options.get(build_arch, options['default'])
+ substitutions['PREFIX'] = prefix
+ return make_in % substitutions
+
+def run():
+ check_memory()
+ build_arch = None
+ host_arch = None
+ prefix= None
+ usage = 'USAGE: configure.py --build=BUILD_ARCH --host=HOST_ARCH --prefix=PREFIX Makefile.in'
+ opts, args = getopt.getopt(sys.argv[1:], '', ['build=', 'host=', 'prefix='])
+ for opt, value in opts:
+ if opt == '--build':
+ build_arch = value
+ elif opt == '--host':
+ host_arch = value
+ elif opt == '--prefix':
+ prefix = value
+ assert len(args) == 1 and build_arch and host_arch and prefix, usage
+
+ infile = open(args[0])
+ make_in = infile.read()
+ infile.close()
+ makefile = open('Makefile', 'w')
+ makefile.write(gen_make(make_in, build_arch, host_arch, prefix))
+ makefile.close()
+
+if __name__ == '__main__':
+ run()
Added: pypy/build/debian/debian/control
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/control Thu Feb 7 19:46:37 2008
@@ -0,0 +1,68 @@
+Source: pypy
+Section: python
+Priority: extra
+Maintainer: Chris Lamb <chris at chris-lamb.co.uk>
+Build-Depends: debhelper (>= 6), python-dev, libgc-dev, libbz2-dev, python-ctypes, libreadline5-dev, procps, zlib1g-dev, quilt
+Standards-Version: 3.7.3
+Vcs-Git: git://git.chris-lamb.co.uk/pkg-pypy.git
+Vcs-Browser: http://git.chris-lamb.co.uk/?p=pkg-pypy.git
+Homepage: http://codespeak.net/pypy/
+
+Package: pypy-dev
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, python-codespeak-lib (>= 0.9.0), pypy-lib (>= ${source:Version}), python, python-ctypes
+Recommends: pypy-doc, python-pygame, graphviz, python-dev, gcc, libgc-dev, llvm-cfe, mono-gmcs, spidermonkey-bin, jasmin-sable, libreadline5-dev
+Suggests: gcl-dev
+Description: the Python in python interpreter, interpreted version
+ The PyPy project aims to provide a Python implementation of the Python
+ interpreter.
+ .
+ This package provides the interpreted version of PyPy, which requires
+ a Python interpreter to run. It is able to translate itself using
+ several backends. To do this, you will need to install some of the
+ Recommended packages, as well as upgrade your machine with lots of RAM.
+ .
+ Install this package if you want to translate RPython programs, or to
+ build a custom translated version of the PyPy interpreter.
+
+Package: pypy
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, pypy-lib
+Description: the Python in Python interpreter, C backend translation
+ The PyPy project aims to provide a Python implementation of the Python
+ interpreter.
+ .
+ This package provides the PyPy interpreter compiled using the C backend
+ and no special additionnal functionality. As such it can be used as another
+ implementation of the Python language. See pypy-stackless for an enhanced
+ version.
+
+Package: pypy-stackless
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, pypy-lib
+Description: the python in python interpreter, C backend translation
+ The PyPy project aims to provide a Python implementation of the Python
+ interpreter.
+ .
+ This package provides the PyPy interpreter compiled using the C backend, with
+ stackless functionality.
+
+Package: pypy-doc
+Architecture: all
+Section: doc
+Description: Documentation for PyPy
+ The PyPy project aims to provide a Python implementation of the Python
+ interpreter.
+ .
+ This package provides documentation for the PyPy interpreter, the translation
+ process, etc. You will definitely need it if you intend to play with PyPy.
+
+Package: pypy-lib
+Architecture: all
+Recommends: pypy | pypy-dev
+Description: standard Python library for PyPy
+ The PyPy project aims to provide a Python implementation of the Python
+ interpreter.
+ .
+ This package provides a version of the standard Python library suitable for
+ use with the PyPy interpreter, both interpreted and translated.
Added: pypy/build/debian/debian/copyright
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/copyright Thu Feb 7 19:46:37 2008
@@ -0,0 +1,199 @@
+This package was debianized by Alexandre Fayolle <afayolle at debian.org> on
+Mon, 8 Jan 2007 19:13:59 +0100.
+
+It was downloaded from <http://codespeak.net/pypy>.
+
+Upstream Authors:
+
+ Armin Rigo
+ Samuele Pedroni
+ Michael Hudson
+ Carl Friedrich Bolz
+ Christian Tismer
+ Holger Krekel
+ Eric van Riet Paap
+ Antonio Cuni
+ Anders Chrigstrom
+ Maciek Fijalkowski
+ Richard Emslie
+ Aurelien Campeas
+ Anders Lehmann
+ Niklaus Haldimann
+ Seo Sanghyeon
+ Lawrence Oluyede
+ Alex Martelli
+ Ludovic Aubry
+ Adrien Di Mascio
+ Stephan Diehl
+ Guido Wesdorp
+ Stefan Schwarzer
+ Tomek Meka
+ Patrick Maupin
+ Leonardo Santagada
+ Bob Ippolito
+ Laura Creighton
+ Jacob Hallen
+ Marius Gedminas
+ Niko Matsakis
+ Amaury Forgeot d Arc
+ Guido van Rossum
+ Valentino Volonghi
+ Alexander Schremmer
+ Alexandre Fayolle
+ Wanja Saatkamp
+ Gerald Klix
+ Eugene Oden
+ Dinu Gherman
+ Guenter Jantzen
+ Ben Young
+ Nicolas Chauvat
+ Michael Twomey
+ Rocco Moretti
+ Simon Burton
+ Boris Feigin
+ Olivier Dormond
+ Gintautas Miliauskas
+ Stuart Williams
+ Jens-Uwe Mager
+ Brian Dorsey
+ Jonathan David Riehl
+ Anders Qvist
+ Beatrice During
+ Andreas Friedge
+ Alan McIntyre
+ Bert Freudenberg
+
+ Heinrich-Heine University, Germany
+ Open End AB (formerly AB Strakt), Sweden
+ merlinux GmbH, Germany
+ tismerysoft GmbH, Germany
+ Logilab Paris, France
+ DFKI GmbH, Germany
+ Impara, Germany
+ Change Maker, Sweden
+
+License:
+
+ Copyright (C) 2003-2007
+
+ 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 at tunes.org>
+ Samuele Pedroni <pedronis at strakt.com>
+ Holger Krekel <hpk at trillke.net>
+ Christian Tismer <tismer at tismer.com>
+ Michael Hudson <mwh at python.net>
+ Carl Friedrich Bolz <cfbolz at gmx.de>
+ Eric van Riet Paap <eric at vanrietpaap.nl>
+ Richard Emslie <rxe at ukshells.co.uk>
+ Anders Chrigstrom <ac at strakt.com>
+ Niklaus Haldimann <nhaldimann at gmx.ch>
+ Antonio Cuni <anto.cuni at gmail.com>
+ Maciek Fijalkowski <fijal at genesilico.pl>
+ Aurélien Campéas <aurelien.campeas at logilab.fr>
+ Seo Sanghyeon <sanxiyn at gmail.com>
+ Alex Martelli <aleaxit at yahoo.com>
+ Anders Lehmann <serendipity-soft at get2net.dk>
+ Stephan Diehl <stephan.diehl at gmx.net>
+ Patrick Maupin <pmaupin at gmail.com>
+ Ludovic Aubry <ludovic.aubry at logilab.fr>
+ Bob Ippolito <bob at redivi.com>
+ Adrien Di Mascio <adim at logilab.fr>
+ Jacob Hallen <jacob at strakt.com>
+ Laura Creighton <lac at strakt.com>
+ Marius Gedminas <mgedmin at b4net.lt>
+ Amaury Forgeot d Arc <amauryfa at gmail.com>
+ Boris Feigin <boria at fbg.uklinux.net>
+ Valentino Volonghi <dialtone at divmod.com>
+ Bert Freudenberg <bert at impara.de>
+ Andrew Thompson <andrew.thompson at newhert.com>
+ Jonathan David Riehl <jriehl at spaceship.com>
+ Amaury Forgeot D Arc <Amaury.Forgeotdarc at Ubitrade.Com>
+ Alexandre Fayolle <afayolle at debian.org>
+ Guido van Rossum <guido at python.org>
+
+ Heinrich-Heine University, Germany
+ AB Strakt, Sweden
+ merlinux GmbH, Germany
+ tismerysoft GmbH, Germany
+ Logilab Paris, France
+ DFKI GmbH, Germany
+ Impara, Germany
+ Change Maker, Sweden
+
+
+ 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.
+
+
+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
+
+License for files in pypy/modules/unicodedata
+=============================================
+
+The following files are from the website of The Unicode Consortium
+at <http://www.unicode.org/>. For the terms of use of these files, see
+<http://www.unicode.org/terms_of_use.html>.
+
+ CompositionExclusions-3.2.0.txt
+ CompositionExclusions-4.1.0.txt
+ CompositionExclusions-5.0.0.txt
+ EastAsianWidth-3.2.0.txt
+ EastAsianWidth-4.1.0.txt
+ EastAsianWidth-5.0.0.txt
+ UnicodeData-3.2.0.txt
+ UnicodeData-4.1.0.txt
+ UnicodeData-5.0.0.txt
+
+The following files are derived from files from the above website. The same
+terms of use apply:
+
+ UnihanNumeric-3.2.0.txt
+ UnihanNumeric-4.1.0.txt
+ UnihanNumeric-5.0.0.txt
+
+License for pyrex
+=================
+
+Copyright stuff: Pyrex is free of restrictions. You may use, redistribute,
+modify and distribute modified versions.
+
+The latest version of Pyrex can be found here:
+
+ <http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>
+
+Greg Ewing, Computer Science Dept, +--------------------------------------+
+University of Canterbury, | A citizen of NewZealandCorp, a |
+Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
+greg at cosc.canterbury.ac.nz
+
+The Debian packaging is (C) 2007, 2008 Alexandre Fayolle
+<alexandre.fayolle at logilab.fr>, Sylvain Thénault
+<sylvain.thenault at logilab.fr> and Chris Lamb <chris at chris-lamb.co.uk> and is
+licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Added: pypy/build/debian/debian/manpages/jscompile.1
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/manpages/jscompile.1 Thu Feb 7 19:46:37 2008
@@ -0,0 +1,39 @@
+.TH JSCOMPILE 1 "January 27, 2008"
+.SH NAME
+jscompile \- RPython to JavaScript compiler.
+.SH SYNOPSIS
+.B jscompile
+.RI module_to_compile
+.RI [options]
+.SH DESCRIPTION
+\fBjscompile\fP compiles RPython programs to JavaScript using the PyPy
+translation toolchain.
+.SH OPTIONS
+.TP
+.B \-\-help, -h
+Show help message and exit.
+.TP
+.B \-\-view
+View flow graphs.
+.TP
+.B \-\-no-view
+Unset option set by --view. [default]
+.TP
+.B \--pdb
+Use debugger.
+.TP
+.B \-\-no-pdb
+Unset option set by --pdb. [default]
+.TP
+.B \-\-output=OUTPUT
+File to save results. [default: output.js]
+.SH SEE ALSO
+.BR pypy (1),
+.BR pypy-stackless (1),
+.BR py.py (1),
+.BR pypy-translate (1)
+.SH AUTHORS
+\fBPyPy\fP was written by the members of the PyPy project <http://codespeak.net/pypy>.
+.PP
+This manual page was written by Chris Lamb <chris at chris-lamb.co.uk>,
+for the Debian project (but may be used by others).
Added: pypy/build/debian/debian/manpages/py.py.1
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/manpages/py.py.1 Thu Feb 7 19:46:37 2008
@@ -0,0 +1,23 @@
+.TH PY.PY 1 "January 27, 2008"
+.SH NAME
+py.py \- PyPy Python interpreter running on top of Python.
+.SH SYNOPSIS
+.B py.py
+.RI [options]
+.SH DESCRIPTION
+\fBpy.py\fP is a Python interpreter running on top of Python.
+.SH OPTIONS
+\fBpy.py\fP has a very large number of options which are changing
+often.
+.TP
+To see a full list, please see the PyPy homepage.
+.SH SEE ALSO
+.BR pypy (1),
+.BR pypy-stackless (1),
+.BR pypy-translate (1),
+.BR jscompile (1)
+.SH AUTHORS
+\fBPyPy\fP was written by the members of the PyPy project <http://codespeak.net/pypy>.
+.PP
+This manual page was written by Chris Lamb <chris at chris-lamb.co.uk>,
+for the Debian project (but may be used by others).
Added: pypy/build/debian/debian/manpages/pypy-stackless.1
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/manpages/pypy-stackless.1 Thu Feb 7 19:46:37 2008
@@ -0,0 +1,47 @@
+.TH PYPY-STACKLESS 1 "January 27, 2008"
+.SH NAME
+pypy-stackless \- PyPy Python interpreter compiled using the stackless C backend.
+.SH SYNOPSIS
+.B pypy-stackless
+.RI [options]
+.SH DESCRIPTION
+\fBpypy-stackless\fP is a PyPy interpreter compiled using the C backend, with
+stackless functionality.
+.SH OPTIONS
+.TP
+.B \-i
+Inspect interactively after running the specified script.
+.TP
+.B \-O
+Dummy optimization flag for compatibility with CPython.
+.TP
+.B \-c CMD
+program passed in as CMD (terminates option list).
+.TP
+.B \-S
+Do not "import site" on initialization.
+.TP
+.B \-u
+Unbuffered binary stdout and stderr.
+.TP
+.B \-h, \-\-help
+Show this help message and exit.
+.TP
+.B \-m
+Library module to be run as a script (terminates option list).
+.TP
+.B \-\-version
+Print the PyPy version.
+.TP
+.B \-\-info
+Print translation information about this PyPy executable.
+.SH SEE ALSO
+.BR pypy (1),
+.BR py.py (1),
+.BR pypy-translate (1),
+.BR jscompile (1)
+.SH AUTHORS
+\fBPyPy\fP was written by the members of the PyPy project <http://codespeak.net/pypy>.
+.PP
+This manual page was written by Chris Lamb <chris at chris-lamb.co.uk>,
+for the Debian project (but may be used by others).
Added: pypy/build/debian/debian/manpages/pypy-translate.1
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/manpages/pypy-translate.1 Thu Feb 7 19:46:37 2008
@@ -0,0 +1,21 @@
+.TH PYPY-TRANSLATE 1 "January 27, 2008"
+.SH NAME
+pypy-translate \- PyPy translation tool.
+.SH SYNOPSIS
+.B pypy-translate
+.RI [options]
+.SH OPTIONS
+\fBpypy-translate\fP has a very large number of options which are changing
+often.
+.TP
+To see the full list, please see the documentation.
+.SH SEE ALSO
+.BR pypy (1),
+.BR pypy-stackless (1),
+.BR py.py (1),
+.BR jscompile (1)
+.SH AUTHORS
+\fBPyPy\fP was written by the members of the PyPy project <http://codespeak.net/pypy>.
+.PP
+This manual page was written by Chris Lamb <chris at chris-lamb.co.uk>,
+for the Debian project (but may be used by others).
Added: pypy/build/debian/debian/manpages/pypy.1
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/manpages/pypy.1 Thu Feb 7 19:46:37 2008
@@ -0,0 +1,46 @@
+.TH PYPY 1 "January 27, 2008"
+.SH NAME
+pypy \- PyPy Python interpreter compiled using the C backend.
+.SH SYNOPSIS
+.B pypy
+.RI [options]
+.SH DESCRIPTION
+\fBpypy\fP is a Python interpreter compiled using the C backend.
+.SH OPTIONS
+.TP
+.B \-i
+Inspect interactively after running the specified script.
+.TP
+.B \-O
+Dummy optimization flag for compatibility with CPython.
+.TP
+.B \-c CMD
+program passed in as CMD (terminates option list).
+.TP
+.B \-S
+Do not "import site" on initialization.
+.TP
+.B \-u
+Unbuffered binary stdout and stderr.
+.TP
+.B \-h, \-\-help
+Show this help message and exit.
+.TP
+.B \-m
+Library module to be run as a script (terminates option list).
+.TP
+.B \-\-version
+Print the PyPy version.
+.TP
+.B \-\-info
+Print translation information about this PyPy executable.
+.SH SEE ALSO
+.BR pypy-stackless (1),
+.BR py.py (1),
+.BR pypy-translate (1),
+.BR jscompile (1)
+.SH AUTHORS
+\fBPyPy\fP was written by the members of the PyPy project <http://codespeak.net/pypy>.
+.PP
+This manual page was written by Chris Lamb <chris at chris-lamb.co.uk>,
+for the Debian project (but may be used by others).
Added: pypy/build/debian/debian/patches/01-package-specific-temp-prefix
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/patches/01-package-specific-temp-prefix Thu Feb 7 19:46:37 2008
@@ -0,0 +1,19 @@
+Use a PyPy-specific tempororary directory so that unrelated dirs are never
+removed. This fixes Debian bug #452851.
+
+ -- Chris Lamb <chris at chris-lamb.co.uk> Sun, 27 Jan 2008 18:27:57 +0000
+
+===============================================================================
+diff -urNad pypy-svn.orig/py/path/local/local.py pypy-svn/py/path/local/local.py
+--- pypy-svn.orig/py/path/local/local.py 2008-01-27 06:40:27.000000000 +0000
++++ pypy-svn/py/path/local/local.py 2008-01-27 18:26:16.000000000 +0000
+@@ -587,6 +587,9 @@
+ if keep is true directories with a number less than (maxnum-keep)
+ will be removed.
+ """
++
++ prefix = 'debian-pypy-' + prefix
++
+ if rootdir is None:
+ rootdir = cls.get_temproot()
+
Added: pypy/build/debian/debian/patches/02-mips-support
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/patches/02-mips-support Thu Feb 7 19:46:37 2008
@@ -0,0 +1,76 @@
+Add MIPS and MIPSEL support.
+
+This patch was originally written by Thiemo Seufer <ths at networkno.de> and
+was submitted via Debian bug #459520.
+
+ -- Chris Lamb <chris at chris-lamb.co.uk> Mon, 28 Jan 2008 05:39:13 +0000
+
+
+--- pypy-1.0.0-svn50146.orig/py/c-extension/greenlet/slp_platformselect.h
++++ pypy-1.0.0-svn50146/py/c-extension/greenlet/slp_platformselect.h
+@@ -18,4 +18,6 @@
+ #include "switch_s390_unix.h" /* Linux/S390 */
+ #elif defined(__GNUC__) && defined(__s390x__) && defined(__linux__)
+ #include "switch_s390_unix.h" /* Linux/S390 zSeries (identical) */
++#elif defined(__GNUC__) && defined(__mips__) && defined(__linux__)
++#include "switch_mips_unix.h" /* Linux/MIPS */
+ #endif
+--- pypy-1.0.0-svn50146.orig/py/c-extension/greenlet/switch_mips_unix.h
++++ pypy-1.0.0-svn50146/py/c-extension/greenlet/switch_mips_unix.h
+@@ -0,0 +1,56 @@
++/*
++ * this is the internal transfer function.
++ *
++ * HISTORY
++ * 05-Jan-08 Thiemo Seufer <ths at debian.org>
++ * Ported from ppc.
++ */
++
++#define STACK_REFPLUS 1
++
++#ifdef SLP_EVAL
++
++#define STACK_MAGIC 0
++
++#ifdef __mips64
++#define REGS_TO_SAVE "$16", "$17", "$18", "$19", "$20", "$21", "$22", \
++ "$23", "$28", "$30"
++#else
++#define REGS_TO_SAVE "$16", "$17", "$18", "$19", "$20", "$21", "$22", \
++ "$23", "$30"
++#endif
++static int
++slp_switch(void)
++{
++ register int *stackref, stsizediff;
++ __asm__ __volatile__ ("" : : : REGS_TO_SAVE);
++ __asm__ ("move %0, $29" : "=r" (stackref) : );
++ {
++ SLP_SAVE_STATE(stackref, stsizediff);
++ __asm__ __volatile__ (
++#ifdef __mips64
++ "daddu $29, %0\n"
++#else
++ "addu $29, %0\n"
++#endif
++ : /* no outputs */
++ : "r" (stsizediff)
++ );
++ SLP_RESTORE_STATE();
++ }
++ __asm__ __volatile__ ("" : : : REGS_TO_SAVE);
++ return 0;
++}
++
++#endif
++
++/*
++ * further self-processing support
++ */
++
++/*
++ * if you want to add self-inspection tools, place them
++ * here. See the x86_msvc for the necessary defines.
++ * These features are highly experimental und not
++ * essential yet.
++ */
Added: pypy/build/debian/debian/patches/series
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/patches/series Thu Feb 7 19:46:37 2008
@@ -0,0 +1,2 @@
+01-package-specific-temp-prefix
+02-mips-support
Added: pypy/build/debian/debian/pypy-dev.dirs
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.dirs Thu Feb 7 19:46:37 2008
@@ -0,0 +1,2 @@
+var/cache/pypy/_cache
+usr/share/lintian/overrides
Added: pypy/build/debian/debian/pypy-dev.install
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.install Thu Feb 7 19:46:37 2008
@@ -0,0 +1,17 @@
+pypy/annotation usr/share/pypy-1.0/pypy
+pypy/bin usr/share/pypy-1.0/pypy
+pypy/config usr/share/pypy-1.0/pypy
+pypy/__init__.py usr/share/pypy-1.0/pypy
+pypy/interpreter usr/share/pypy-1.0/pypy
+pypy/jit usr/share/pypy-1.0/pypy
+pypy/lang usr/share/pypy-1.0/pypy
+pypy/module usr/share/pypy-1.0/pypy
+pypy/objspace usr/share/pypy-1.0/pypy
+pypy/rlib usr/share/pypy-1.0/pypy
+pypy/rpython usr/share/pypy-1.0/pypy
+pypy/tool usr/share/pypy-1.0/pypy
+pypy/translator usr/share/pypy-1.0/pypy
+pypy/conftest.py usr/share/pypy-1.0/pypy
+debian/scripts/py.py usr/bin
+debian/scripts/pypy-translate usr/bin
+debian/scripts/jscompile usr/bin
Added: pypy/build/debian/debian/pypy-dev.links
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.links Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+/var/cache/pypy/_cache /usr/share/pypy-1.0/pypy/_cache
Added: pypy/build/debian/debian/pypy-dev.manpages
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.manpages Thu Feb 7 19:46:37 2008
@@ -0,0 +1,3 @@
+debian/manpages/py.py.1
+debian/manpages/pypy-translate.1
+debian/manpages/jscompile.1
Added: pypy/build/debian/debian/pypy-dev.override
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.override Thu Feb 7 19:46:37 2008
@@ -0,0 +1,5 @@
+# Gentoo specific file. We will keep it.
+pypy-dev: unusual-interpreter ./usr/share/pypy-0.9/pypy/tool/build/bin/gentoo_init.d #!/sbin/runscript
+
+# This is the name of the interpreted interpreter. Renaming it to py makes no sense
+pypy-dev: script-with-language-extension usr/bin/py.py
Added: pypy/build/debian/debian/pypy-dev.postinst
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.postinst Thu Feb 7 19:46:37 2008
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ chmod o+rwxt /var/cache/pypy/_cache
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: pypy/build/debian/debian/pypy-dev.prerm
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-dev.prerm Thu Feb 7 19:46:37 2008
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ rm -rf /var/cache/pypy/_cache/*
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: pypy/build/debian/debian/pypy-doc.docs
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-doc.docs Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+pypy/doc/*
Added: pypy/build/debian/debian/pypy-lib.dirs
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-lib.dirs Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+usr/share/lintian/overrides
Added: pypy/build/debian/debian/pypy-lib.install
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-lib.install Thu Feb 7 19:46:37 2008
@@ -0,0 +1,2 @@
+lib-python usr/share/pypy-1.0
+pypy/lib usr/share/pypy-1.0/pypy
Added: pypy/build/debian/debian/pypy-lib.links
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-lib.links Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+usr/share/pypy-1.0/pypy/lib usr/share/pypy-1.0/lib
Added: pypy/build/debian/debian/pypy-lib.override
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-lib.override Thu Feb 7 19:46:37 2008
@@ -0,0 +1,2 @@
+# The package is meant to be used by PyPy, and therefore has no dependency on Python.
+pypy-lib: python-script-but-no-python-dep
Added: pypy/build/debian/debian/pypy-logic.install
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-logic.install Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+debian/tmp/usr/bin/pypy-logic usr/bin
Added: pypy/build/debian/debian/pypy-stackless.install
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-stackless.install Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+debian/tmp/usr/bin/pypy-stackless usr/bin
Added: pypy/build/debian/debian/pypy-stackless.manpages
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy-stackless.manpages Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+debian/manpages/pypy-stackless.1
Added: pypy/build/debian/debian/pypy.install
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy.install Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+debian/tmp/usr/bin/pypy usr/bin
Added: pypy/build/debian/debian/pypy.manpages
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/pypy.manpages Thu Feb 7 19:46:37 2008
@@ -0,0 +1 @@
+debian/manpages/pypy.1
Added: pypy/build/debian/debian/rules
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/rules Thu Feb 7 19:46:37 2008
@@ -0,0 +1,126 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+VERSION=1.0
+
+get-orig-source:
+ set -e ; \
+ svn co http://codespeak.net/svn/pypy/dist pypy-svn ; \
+ REVISION=`svnversion pypy-svn/` ; \
+ find pypy-svn/ -depth -type d -name ".svn" | xargs rm -rf ; \
+ tar cfz pypy_1.0.0-svn$$REVISION.orig.tar.gz pypy-svn/ ; \
+ rm -rf pypy-svn/
+
+Makefile: debian/Makefile.in
+ python debian/configure.py --build=$(DEB_BUILD_ARCH) --host=$(DEB_HOST_ARCH) --prefix=debian/tmp/usr debian/Makefile.in
+
+build: patch build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: Makefile
+ $(MAKE) all
+ touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp:
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp
+ if test -e Makefile ; then $(MAKE) clean || true ; fi
+ rm -f Makefile
+ dh_clean
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ cp debian/pypy-lib.override debian/pypy-lib/usr/share/lintian/overrides/pypy-lib
+ cp debian/pypy-dev.override debian/pypy-dev/usr/share/lintian/overrides/pypy-dev
+ dh_install -i
+ find debian/pypy-lib -name CVS | xargs rm -rf
+ find debian/pypy-lib -name "*.pyc" | xargs rm -rf
+ find debian/pypy-dev -name "*.pyc" | xargs rm -rf
+ find debian/pypy-dev/usr/share/pypy-*/pypy/translator/llvm \
+ debian/pypy-lib/usr/share/pypy-*/lib-python \
+ debian/pypy-dev/usr/share/pypy-*/pypy/lang/js/test/ecma \
+ -type f | xargs chmod a-x
+ for f in `find debian/pypy-lib debian/pypy-dev -type f` ; do \
+ if head -n 1 $$f | grep -q '^#!.*python' ; then \
+ chmod a+x $$f ; \
+ fi ; \
+ done
+ chmod a+x debian/pypy-lib/usr/share/pypy-*/lib-python/2.4.1/plat-*/regen
+ for f in debian/pypy-lib/usr/share/pypy-$(VERSION)/lib-python/2.4.1/test/test_largefile.py \
+ debian/pypy-lib/usr/share/pypy-$(VERSION)/lib-python/2.4.1/test/test_largefile.py \
+ debian/pypy-lib/usr/share/pypy-$(VERSION)/lib-python/2.4.1/cgi.py \
+ debian/pypy-lib/usr/share/pypy-$(VERSION)/lib-python/2.4.1/bsddb/dbshelve.py \
+ debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/translator/microbench/pybench/pybench.py \
+ debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/translator/microbench/pybench/Setup.py \
+ debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/translator/microbench/pybench/Setup.py \
+ debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/translator/microbench/pybench/platform.py \
+ debian/pypy-lib/usr/share/pypy-$(VERSION)/pypy/lib/app_test/test_binascii.py \
+ debian/pypy-lib/usr/share/pypy-$(VERSION)/pypy/lib/test2/pickledtasklet.py \
+ ; do \
+ echo "#!/usr/bin/python" > debian/tmpfile ; \
+ tail -n +2 $$f >> debian/tmpfile ; \
+ mv debian/tmpfile $$f ; \
+ chmod a+x $$f ; \
+ done
+ rm debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/module/unicodedata/LICENSE
+ rm debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/lang/js/commit
+ rm debian/pypy-lib/usr/share/pypy-$(VERSION)/pypy/lib/pyrepl/.cvsignore
+ rmdir debian/pypy-dev/usr/share/pypy-$(VERSION)/pypy/translator/js/examples/bnb/data/images/
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+ $(MAKE) install
+ dh_install -s
+
+# Must not depend on anything. This is to be called by binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_installman --language=C
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture independent packages using the common target.
+binary-indep: build-indep install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependent packages using the common target.
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch patch unpatch get-orig-source
Added: pypy/build/debian/debian/scripts/jscompile
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/scripts/jscompile Thu Feb 7 19:46:37 2008
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+import sys
+sys.path.append('/usr/share/pypy-1.0')
+sys.path.append('/usr/share/pypy-1.0/pypy/bin')
+sys.path.remove('/usr/bin')
+execfile('/usr/share/pypy-1.0/pypy/bin/jscompile.py')
Added: pypy/build/debian/debian/scripts/py.py
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/scripts/py.py Thu Feb 7 19:46:37 2008
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+import sys
+sys.path.insert(0, '/usr/share/pypy-1.0')
+sys.path.remove('/usr/bin')
+execfile('/usr/share/pypy-1.0/pypy/bin/py.py')
Added: pypy/build/debian/debian/scripts/pypy-translate
==============================================================================
--- (empty file)
+++ pypy/build/debian/debian/scripts/pypy-translate Thu Feb 7 19:46:37 2008
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/share/pypy-1.0/pypy/translator/goal/translate.py "$@"
More information about the Pypy-commit
mailing list