all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Federico Beffa <beffa@ieee.org>
To: Andreas Enge <andreas@enge.fr>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add Cython
Date: Fri, 24 Oct 2014 17:51:12 +0200	[thread overview]
Message-ID: <CAKrPhPN4_RZ9vY3SsX3uNcn_xoFwkD4Zzot2qvf060aYKOKUPQ@mail.gmail.com> (raw)
In-Reply-To: <20141023062426.GA6636@debian>

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

On Thu, Oct 23, 2014 at 8:25 AM, Andreas Enge <andreas@enge.fr> wrote:
> Since there will be two packages, I suggest to follow our python module
> naming conventions although this is not a python module, and to prepend
> with "python-" and "python2-". Writing "cython2" would look as if this were
> a next generation cython (in particular, it would look newer than plain
> cython in version 0.21.1).


Makes sense: updated.

Thanks,
Fede

[-- Attachment #2: 0001-gnu-Add-Cython.patch --]
[-- Type: text/x-patch, Size: 2335 bytes --]

From 3155aa1ec614afb01b7bff0bbf3eabb4ee5bb0de Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Mon, 20 Oct 2014 19:52:45 +0200
Subject: [PATCH] gnu: Add Cython

* gnu/packages/python.scm(cython,cython2): New variables.
---
 gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 897e248..a95d27c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2014 Federico Beffa <beffa@fbengineering.ch>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1832,3 +1833,43 @@ sources.")
 
 (define-public python2-sphinx
   (package-with-python2 python-sphinx))
+
+(define-public python-cython
+  (package
+    (name "python-cython")
+    (version "0.21.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://cython.org/release/Cython-"
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "0ddz2l2dvcy5hdkxx4xlfiwpccvwia7ixgcy4h0pdv46a4i4vxj3"))))
+    (build-system python-build-system)
+    ;; we need the full python package and not just the python-wrapper
+    ;; because we need libpython3.3m.so
+    (inputs
+     `(("python" ,python)))
+    (arguments
+     `(#:phases
+       (alist-cons-before
+        'check 'set-HOME
+        ;; some tests require access to "$HOME/.cython"
+        (lambda* _ (setenv "HOME" "/tmp"))
+        (alist-replace
+         'check
+         (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
+         %standard-phases))))
+    (home-page "http://cython.org/")
+    (synopsis "C extensions for Python")
+    (description "Cython is an optimising static compiler for both the Python
+programming language and the extended Cython programming language.  It makes
+writing C extensions for Python as easy as Python itself.")
+    (license asl2.0)))
+
+(define-public python2-cython
+  (package (inherit (package-with-python2 python-cython))
+    (name "python2-cython")
+    (inputs
+     `(("python-2" ,python-2))))) ; this is not automatically changed
-- 
1.8.4


  reply	other threads:[~2014-10-24 15:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-20 18:43 [PATCH] gnu: Add Cython Federico Beffa
2014-10-20 21:15 ` Eric Bavier
2014-10-21 16:16   ` Federico Beffa
2014-10-23  6:25 ` Andreas Enge
2014-10-24 15:51   ` Federico Beffa [this message]
2014-10-24 19:50     ` Andreas Enge
2014-10-25  7:18       ` Federico Beffa
2014-11-03 16:57     ` Ludovic Courtès
2014-11-03 17:00       ` Andreas Enge
2014-11-03 19:42         ` Ludovic Courtès
2014-11-03 19:50           ` Andreas Enge
2014-11-03 20:12             ` Federico Beffa
2014-11-03 21:15               ` Federico Beffa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKrPhPN4_RZ9vY3SsX3uNcn_xoFwkD4Zzot2qvf060aYKOKUPQ@mail.gmail.com \
    --to=beffa@ieee.org \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.