all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] Fix h5py.
Date: Thu, 08 Oct 2015 13:52:03 +0200	[thread overview]
Message-ID: <87pp0ptw64.fsf@gnu.org> (raw)
In-Reply-To: <idj37xl37pv.fsf@bimsb-sys02.mdc-berlin.net> (Ricardo Wurmus's message of "Thu, 8 Oct 2015 13:44:44 +0200")

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> python-h5py is currently broken.
>
>    guix environment --ad-hoc python-2.7.10 python2-h5py
>    python
>    >>> import h5py
>    [weird error]
>
> The immediate reason here is that an Egg archive is built and installed
> instead of a directory.  Python doesn’t seem to know how to import
> modules whose contents are trapped in an Egg archive (or is this only
> the case when setuptools are not in the profile?).
>
> I found that removing ‘python-setuptools’ from the ‘native-inputs’ field
> changes the behaviour such that no Egg archive is built and the library
> files are installed plainly.

OK.  We’ll have to see if other packages are affected.

> Another problem with h5py was that it didn’t actually build against our
> hdf5 library, because it looked for the library and the headers under
> ‘/opt/local’ and ‘/usr/local’.  I fixed this by adding an additional
> build phase.

Not shown here, right?

> From 5f368af582d3586a7b4e3a353d9bbd75eeb83a61 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 8 Oct 2015 13:30:23 +0200
> Subject: [PATCH 1/2] gnu: python-h5py, python2-h5py: Correct inputs.
>
> * gnu/packages/python.scm (python-h5py)
>   [inputs]: Remove python-cython and python-numpy.
>   [propagated-inputs]: New field.
>   [native-inputs]: Drop python-setuptools and add python-cython.
>   (python2-h5py): Replace "inputs" with "propagated-inputs".

I’m no expert but it makes sense to me.  The commit log is OK.

Thanks!

Ludo’.

      parent reply	other threads:[~2015-10-08 11:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 11:44 [PATCH] Fix h5py Ricardo Wurmus
2015-10-08 11:49 ` Ricardo Wurmus
2015-10-08 14:56   ` Ludovic Courtès
2015-10-08 11:52 ` Ludovic Courtès [this message]

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=87pp0ptw64.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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.