[Python-apps-commits] r6208 - in packages/cython (13 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Sun Oct 17 21:11:03 UTC 2010


    Date: Sunday, October 17, 2010 @ 21:10:51
  Author: piotr
Revision: 6208

add cython3 binary package that supports Python 3

Added:
  packages/cython/branches/
  packages/cython/branches/squeeze/
  packages/cython/branches/squeeze/debian/
  packages/cython/branches/squeeze/debian/README.Debian
  packages/cython/branches/squeeze/debian/changelog
  packages/cython/branches/squeeze/debian/compat
  packages/cython/branches/squeeze/debian/control
  packages/cython/branches/squeeze/debian/copyright
  packages/cython/branches/squeeze/debian/cython.1
  packages/cython/branches/squeeze/debian/cython3.1
  packages/cython/branches/squeeze/debian/pycompat
  packages/cython/branches/squeeze/debian/rules
  packages/cython/branches/squeeze/debian/watch


Property changes on: packages/cython/branches/squeeze/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/cython/branches/squeeze/debian/README.Debian
===================================================================
--- packages/cython/branches/squeeze/debian/README.Debian	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/README.Debian	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,23 @@
+Cython
+------
+
+A simple example how to use it in Debian. Create a file t.pyx:
+
+$ cat t.pyx
+def msum(long N):
+    cdef long s = 0, k
+    for k in range(N):
+        s += k + 1
+    return s
+$ cython --convert-range t.pyx
+$ gcc -fPIC -O3 -I/usr/include/python2.5/ -c -o t.o t.c
+$ gcc -shared t.o -o t.so
+$ python
+Python 2.5.2 (r252:60911, May 28 2008, 08:35:32) 
+[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
+Type "help", "copyright", "credits" or "license" for more information.
+>>> import t
+>>> dir(t)
+['__builtins__', '__doc__', '__file__', '__name__', 'msum']
+>>> t.msum(5)
+15

Added: packages/cython/branches/squeeze/debian/changelog
===================================================================
--- packages/cython/branches/squeeze/debian/changelog	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/changelog	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,140 @@
+cython (0.12.1-2) UNRELEASED; urgency=low
+
+  * Team upload.
+  * Add cython3 binary package (for Python 3)
+
+ -- Piotr Ożarowski <piotr at debian.org>  Sun, 17 Oct 2010 22:38:38 +0200
+
+cython (0.12.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Introducing cython-dbg (Closes: #541314)
+
+ -- Yaroslav Halchenko <debian at onerussian.com>  Wed, 05 May 2010 14:11:54 -0400
+
+cython (0.12.1-1) unstable; urgency=low
+
+  [ Kirill Smelkov ]
+  * New upstream release (Closes: #560298)
+
+  [ Jakub Wilk ]
+  * Fix watch file.
+
+  [ Ondrej Certik ]
+  * Standards-Version bumped to 3.8.3 (no change needed)
+
+ -- Ondrej Certik <ondrej at certik.cz>  Sat, 13 Feb 2010 18:59:52 -0800
+
+cython (0.11.2-1) unstable; urgency=low
+
+  [ Ryan Kavanagh ]
+  * New upstream release (Closes: #525620, #536213)
+
+  [ Jakub Wilk ]
+  * debian/rules: remove generated files.
+
+  [ Piotr Ożarowski ]
+  * Standards-Version bumped to 3.8.2 (no change needed)
+
+ -- Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>  Mon, 10 Aug 2009 23:18:51 +0200
+
+cython (0.10.3-1) unstable; urgency=low
+
+  [ Vernon Tang ]
+  * New upstream release
+  * debian/watch: corrected regexp
+
+ -- Ondrej Certik <ondrej at certik.cz>  Sun, 15 Feb 2009 11:27:13 -0800
+
+cython (0.10.2-1) unstable; urgency=low
+
+  [ Sandro Tosi ]
+  * debian/control
+    - switch Vcs-Browser field to viewsvn
+
+  [ Ondrej Certik ]
+  * New upstream release
+  * Description updated
+  * ${shlibs:Depends} added to depends
+  * architecture changed from all to any
+  * python-support moved from Build-Depends-Indep to Build-Depends
+
+ -- Ondrej Certik <ondrej at certik.cz>  Tue, 02 Dec 2008 12:06:41 +0100
+
+cython (0.9.8-1) unstable; urgency=low
+
+  * New upstream release
+  * python-all-dev added to build-depends (upstream now compiles
+    Cython.Plex.Scanners with Cython). The .so file is not included in the
+    .deb for some reason, so until this is fixed, the package stays
+    architecture all and remains pure Python.
+
+ -- Ondrej Certik <ondrej at certik.cz>  Sun, 20 Jul 2008 12:43:45 +0200
+
+cython (0.9.6.14-1) unstable; urgency=low
+
+  * New upstream version
+  * Description improved (SAGE -> Sage), whitespace removed
+  * Standards-Version bumped (no change needed)
+  * README.Debian updated to recent cython way of doing things
+
+ -- Ondrej Certik <ondrej at certik.cz>  Wed, 11 Jun 2008 13:22:09 +0200
+
+cython (0.9.6.13.1-1) unstable; urgency=low
+
+  * New upstream version (Closes: #478077)
+
+ -- Ondrej Certik <ondrej at certik.cz>  Sun, 27 Apr 2008 00:54:05 +0200
+
+cython (0.9.6.12-1) unstable; urgency=low
+
+  * New upstream version (Closes: #463625)
+  * get-orig-tarball targed removed from debian/rules (uscan now works to get
+    orig.tar.gz)
+
+ -- Ondrej Certik <ondrej at certik.cz>  Thu, 14 Feb 2008 13:58:23 +0100
+
+cython (0.9.6.11.ds-1) unstable; urgency=low
+
+  [ Marco Rodrigues ]
+  * debian/watch:
+    + Fixed path (Closes: #460006).
+  * debian/control:
+    + Bump cdbs version to matches policy.
+
+  [ Ondrej Certik ]
+  * New upstream version 
+
+ -- Ondrej Certik <ondrej at certik.cz>  Fri, 18 Jan 2008 00:21:42 +0100
+
+cython (0.9.6.10.ds-1) unstable; urgency=low
+
+  * New upstream version
+  * Moved from pycentral to pysupport
+  * removed patches, since upstream has integrated them
+
+ -- Ondrej Certik <ondrej at certik.cz>  Mon, 31 Dec 2007 03:28:34 +0100
+
+cython (0.9.6.8.ds-2) unstable; urgency=low
+
+  * DM-Upload-Allowed changed to XS-Upload-Allowed
+  * Update Standards-Version to 3.7.3.
+  * Build-depend on python instead of python-all-dev
+  * ${misc:Depends} added to Depends
+  * Depend on debhelper >= 5.0.38
+  * gcc added to Suggests
+  * README.Debian gcc command fixed by adding -fPIC
+
+ -- Ondrej Certik <ondrej at certik.cz>  Sat, 22 Dec 2007 22:12:00 +0100
+
+cython (0.9.6.8.ds-1) unstable; urgency=low
+
+  [ Ondrej Certik ]
+  * Initial Debian upload (Closes: 451039)
+  * Added a patch for handling the @classmethod decorators
+
+  [ Sandro Tosi ]
+  * debian/watch
+    - added missing file
+
+ -- Ondrej Certik <ondrej at certik.cz>  Fri, 30 Nov 2007 13:00:44 +0100

Added: packages/cython/branches/squeeze/debian/compat
===================================================================
--- packages/cython/branches/squeeze/debian/compat	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/compat	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1 @@
+5

Added: packages/cython/branches/squeeze/debian/control
===================================================================
--- packages/cython/branches/squeeze/debian/control	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/control	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,57 @@
+Source: cython
+Section: python
+Priority: optional
+Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Uploaders: Ondrej Certik <ondrej at certik.cz>
+Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.38), python (>= 2.4.4-6), python-all-dev (>= 2.4.4-6), python-support (>= 0.7.5), python-all-dbg, python3-all
+Standards-Version: 3.8.3
+Homepage: http://cython.org/
+Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/cython/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/cython/trunk/
+XS-DM-Upload-Allowed: yes
+
+Package: cython
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Suggests: gcc
+XB-Python-Version: ${python:Versions}
+Description: C-Extensions for Python
+ Cython is a language that makes writing C extensions for the Python language as
+ easy as Python itself. Cython is based on the well-known Pyrex, but supports
+ more cutting edge functionality and optimizations.
+ .
+ The Cython language is very close to the Python language, but Cython
+ additionally supports calling C functions and declaring C types on variables
+ and class attributes. This allows the compiler to generate very efficient C
+ code from Cython code.
+ .
+ This makes Cython the ideal language for wrapping for external C libraries, and
+ for fast C modules that speed up the execution of Python code.
+
+Package: cython-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, cython (= ${binary:Version})
+Suggests: gcc
+XB-Python-Version: ${python:Versions}
+Description: C-Extensions for Python (Debug Build of Cython)
+ This package contains Cython libraries built against versions of
+ Python configured with --pydebug.
+
+Package: cython3
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Suggests: gcc
+Description: C-Extensions for Python
+ Cython is a language that makes writing C extensions for the Python 3 language
+ as easy as Python itself. Cython is based on the well-known Pyrex, but supports
+ more cutting edge functionality and optimizations.
+ .
+ The Cython language is very close to the Python language, but Cython
+ additionally supports calling C functions and declaring C types on variables
+ and class attributes. This allows the compiler to generate very efficient C
+ code from Cython code.
+ .
+ This makes Cython the ideal language for wrapping for external C libraries, and
+ for fast C modules that speed up the execution of Python code.

Added: packages/cython/branches/squeeze/debian/copyright
===================================================================
--- packages/cython/branches/squeeze/debian/copyright	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/copyright	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,61 @@
+It was downloaded from http://cython.org/
+
+This package was debianized by Ondrej Certik <ondrej at certik.cz> on
+Tue, 20 Nov 2007 23:30:02 +0100
+
+Upstream Authors: 
+
+    Stefan Behnel, Robert Bradshaw, and William Stein
+
+Copyright 2007 Stefan Behnel, Robert Bradshaw, and William Stein
+
+The PYTHON SOFTWARE FOUNDATION LICENSE:
+
+PSF LICENSE AGREEMENT FOR PYTHON 2.4
+------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using Python 2.4 software in source or binary form and its
+associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF
+hereby grants Licensee a nonexclusive, royalty-free, world-wide
+license to reproduce, analyze, test, perform and/or display publicly,
+prepare derivative works, distribute, and otherwise use Python 2.4
+alone or in any derivative version, provided, however, that PSF's
+License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
+2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved"
+are retained in Python 2.4 alone or in any derivative version prepared
+by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python 2.4 or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python 2.4.
+
+4. PSF is making Python 2.4 available to Licensee on an "AS IS"
+basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.4 WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+2.4 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.4,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee.  This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python 2.4, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.

Added: packages/cython/branches/squeeze/debian/cython.1
===================================================================
--- packages/cython/branches/squeeze/debian/cython.1	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/cython.1	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,44 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH CYTHON 1 "November 30, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+cython \- compile python-like .pyx file to C for use as python module
+.SH SYNOPSIS
+.B cython
+.RI " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B cython
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBcython\fP is a python script that converts a .pyx file to C, so it can
+be compiled for use as a Python module.
+.PP
+You then need to compile the .c file along with the include files for
+Python, and link it into a shared library.
+.PP
+The HTML documentation explains this better, and the Demo examples show how
+to automate the compile and link stages more easily. 
+.SH AUTHOR
+This manual page was written by Peter Harris <scav at blueyonder.co.uk>, for the
+Debian GNU/Linux system (but may be used by others) and the pyrex package.
+Modified by Ondrej Certik <ondrej at certik.cz> for the Cython package.

Added: packages/cython/branches/squeeze/debian/cython3.1
===================================================================
--- packages/cython/branches/squeeze/debian/cython3.1	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/cython3.1	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,44 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH CYTHON3 1 "November 30, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+cython3 \- compile Python-like .pyx file to C for use as Python 3 module
+.SH SYNOPSIS
+.B cython3
+.RI " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B cython3
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBcython3\fP is a python script that converts a .pyx file to C, so it can
+be compiled for use as a Python module.
+.PP
+You then need to compile the .c file along with the include files for
+Python, and link it into a shared library.
+.PP
+The HTML documentation explains this better, and the Demo examples show how
+to automate the compile and link stages more easily. 
+.SH AUTHOR
+This manual page was written by Peter Harris <scav at blueyonder.co.uk>, for the
+Debian GNU/Linux system (but may be used by others) and the pyrex package.
+Modified by Ondrej Certik <ondrej at certik.cz> for the Cython package.

Added: packages/cython/branches/squeeze/debian/pycompat
===================================================================
--- packages/cython/branches/squeeze/debian/pycompat	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/pycompat	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1 @@
+2

Added: packages/cython/branches/squeeze/debian/rules
===================================================================
--- packages/cython/branches/squeeze/debian/rules	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/rules	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEB_PYTHON_SYSTEM=pysupport
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+install/cython::
+	dh_installman debian/cython.1
+
+
+#
+# Debugging version -dbg
+#
+# Re-build using python-dbg
+install/cython-dbg ::
+	for i in $(cdbs_python_build_versions); do \
+	  python$$i-dbg ./setup.py install $(DEB_PYTHON_INSTALL_ARGS_ALL) \
+		 --root $(CURDIR)/debian/cython-dbg; \
+	done
+	: # Keep only _d.so files for cython-dbg package
+	find debian/cython-dbg ! -type d ! -name '*_d.so' | xargs rm -f
+	: # Prune empty directories
+	find debian/cython-dbg -depth -empty -exec rmdir \{\} \;
+
+binary-predeb/cython-dbg::
+	mkdir -p debian/cython-dbg/usr/share/doc
+	ln -s cython debian/cython-dbg/usr/share/doc/cython-dbg
+
+install/cython3::
+	for i in $(shell py3versions -vs); do \
+	  python$$i ./setup.py install --install-layout=deb \
+		--root $(CURDIR)/debian/cython3; \
+	done
+	mv $(CURDIR)/debian/cython3/usr/bin/cython \
+	   $(CURDIR)/debian/cython3/usr/bin/cython3
+	dh_python3 -pcython3
+	dh_installman -pcython3 debian/cython3.1
+
+clean::
+	rm -f Cython/Compiler/Lexicon.pickle Cython/*/*.c
+	: # Just prune build entirely
+	rm -rf build
+
+# Install directly into package directory (despite multiple packages
+# due to having cython-dbg)
+DEB_DESTDIR = $(CURDIR)/debian/cython


Property changes on: packages/cython/branches/squeeze/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/cython/branches/squeeze/debian/watch
===================================================================
--- packages/cython/branches/squeeze/debian/watch	                        (rev 0)
+++ packages/cython/branches/squeeze/debian/watch	2010-10-17 21:10:51 UTC (rev 6208)
@@ -0,0 +1,2 @@
+version=3
+http://cython.org/release/Cython-([0-9.]+)\.tar\.gz




More information about the Python-apps-commits mailing list