From: Cyril Roelandt <tipecaml@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 1/5] gnu: Enable the 'ctypes' module in Python.
Date: Fri, 7 Mar 2014 03:47:31 +0100 [thread overview]
Message-ID: <1394160455-32580-2-git-send-email-tipecaml@gmail.com> (raw)
In-Reply-To: <1394160455-32580-1-git-send-email-tipecaml@gmail.com>
* gnu/packages/python.scm (python-2): add libffi to the inputs and use it to
build the ctypes module.
---
gnu/packages/python.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 44e3c14..8f92dc2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -27,9 +27,11 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages gdbm)
#:use-module (gnu packages icu4c)
+ #:use-module (gnu packages libffi)
#:use-module (gnu packages readline)
#:use-module (gnu packages openssl)
#:use-module (gnu packages elf)
+ #:use-module (gnu packages pkg-config)
#:use-module (gnu packages sqlite)
#:use-module (guix packages)
#:use-module (guix download)
@@ -98,10 +100,12 @@
#:configure-flags
(let ((bz2 (assoc-ref %build-inputs "bzip2"))
(gdbm (assoc-ref %build-inputs "gdbm"))
+ (libffi (assoc-ref %build-inputs "libffi"))
(openssl (assoc-ref %build-inputs "openssl"))
(readline (assoc-ref %build-inputs "readline"))
(zlib (assoc-ref %build-inputs "zlib")))
(list "--enable-shared" ; allow embedding
+ "--with-system-ffi" ; build ctypes
(string-append "CPPFLAGS="
"-I" bz2 "/include "
"-I" gdbm "/include "
@@ -111,6 +115,7 @@
(string-append "LDFLAGS="
"-L" bz2 "/lib "
"-L" gdbm "/lib "
+ "-L" libffi "/lib "
"-L" openssl "/lib "
"-L" readline "/lib "
"-L" zlib "/lib")))
@@ -137,10 +142,13 @@
(inputs
`(("bzip2" ,bzip2)
("gdbm" ,gdbm)
+ ("libffi" ,libffi) ; for ctypes
("openssl" ,openssl)
("readline" ,readline)
("zlib" ,zlib)
("patchelf" ,patchelf))) ; for (guix build rpath)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
(native-search-paths
(list (search-path-specification
(variable "PYTHONPATH")
--
1.8.4.rc3
next prev parent reply other threads:[~2014-03-07 2:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 2:47 [PATCH 0/5] Python improvements Cyril Roelandt
2014-03-07 2:47 ` Cyril Roelandt [this message]
2014-03-07 9:28 ` [PATCH 1/5] gnu: Enable the 'ctypes' module in Python Ludovic Courtès
2014-03-07 2:47 ` [PATCH 2/5] gnu: Python: use /nix/.../sh if /bin/sh cannot be found Cyril Roelandt
2014-03-07 9:31 ` Ludovic Courtès
2014-03-22 3:36 ` [PATCH 2/4 v2] gnu: Python: use /nix/.../sh instead of /bin/sh in the subprocess module Cyril Roelandt
2014-03-22 14:26 ` Ludovic Courtès
2014-03-07 2:47 ` [PATCH 3/5] gnu: Enable tests in Python 3 Cyril Roelandt
2014-03-07 9:40 ` Ludovic Courtès
2014-03-21 4:12 ` [PATCH 3/4 v2] " Cyril Roelandt
2014-03-22 14:32 ` Ludovic Courtès
2014-03-21 4:14 ` [PATCH 3/5] " Cyril Roelandt
2014-03-21 13:15 ` Ludovic Courtès
2014-03-22 23:13 ` Cyril Roelandt
2014-03-23 10:43 ` Ludovic Courtès
2014-03-07 2:47 ` [PATCH 4/5] gnu: Python: bump to 3.3.4 Cyril Roelandt
2014-03-07 9:31 ` Ludovic Courtès
2014-03-21 4:07 ` Cyril Roelandt
2014-03-21 13:02 ` Ludovic Courtès
2014-03-07 2:47 ` [PATCH 5/5] gnu: remove python-fix-dbm.patch Cyril Roelandt
2014-03-07 9:32 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394160455-32580-2-git-send-email-tipecaml@gmail.com \
--to=tipecaml@gmail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).