all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Fixes for MISO.
@ 2015-06-17 10:20 Ricardo Wurmus
  2015-06-23 12:50 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2015-06-17 10:20 UTC (permalink / raw)
  To: guix-devel@gnu.org

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

The current recipe for MISO fails to install the executables.  The first
patch fixes this by patching "setup.py" to use "setuptools" rather than
"distutils.core".  It also adds new native inputs, because these
executables require testing.

The second patch changes the protocol of the tarball URL from http to
https; pypi redirects to https.

~~ Ricardo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-miso-Install-executables.patch --]
[-- Type: text/x-patch, Size: 1913 bytes --]

From b8c6ece9d658969a0ce8054e368df96ce293c30f Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 17 Jun 2015 12:14:39 +0200
Subject: [PATCH 1/2] gnu: miso: Install executables.

* gnu/packages/bioinformatics.scm (miso)[source]: Patch "setup.py" to use
  "setuptools" so that executables are built.
* gnu/packages/bioinformatics.scm (miso)[native-inputs]: Add "python2-mock"
  and "python2-pytz".
---
 gnu/packages/bioinformatics.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 4a55040..30bc581 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1301,9 +1301,12 @@ sequencing tag position and orientation.")
                (base32
                 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
               (modules '((guix build utils)))
-              ;; use "gcc" instead of "cc" for compilation
               (snippet
                '(substitute* "setup.py"
+                  ;; Use setuptools, or else the executables are not
+                  ;; installed.
+                  (("distutils.core") "setuptools")
+                  ;; use "gcc" instead of "cc" for compilation
                   (("^defines")
                    "cc.set_executables(
 compiler='gcc',
@@ -1321,7 +1324,9 @@ linker_so='gcc -shared'); defines")))))
        ("python-scipy" ,python2-scipy)
        ("python-matplotlib" ,python2-matplotlib)))
     (native-inputs
-     `(("python-setuptools" ,python2-setuptools)))
+     `(("python-mock" ,python2-mock) ;for tests
+       ("python-pytz" ,python2-pytz) ;for tests
+       ("python-setuptools" ,python2-setuptools)))
     (home-page "http://genes.mit.edu/burgelab/miso/index.html")
     (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
     (description
-- 
2.1.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-miso-Use-HTTPS-URL.patch --]
[-- Type: text/x-patch, Size: 1008 bytes --]

From 062066c95d8dca286feb063f544f20a686b00d7e Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 17 Jun 2015 12:16:40 +0200
Subject: [PATCH 2/2] gnu: miso: Use HTTPS URL.

* gnu/packages/bioinformatics.scm (miso)[source]: Use "https" protocol for
  downloading the source tarball.
---
 gnu/packages/bioinformatics.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 30bc581..e43021d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1295,7 +1295,7 @@ sequencing tag position and orientation.")
     (source (origin
               (method url-fetch)
               (uri (string-append
-                    "http://pypi.python.org/packages/source/m/misopy/misopy-"
+                    "https://pypi.python.org/packages/source/m/misopy/misopy-"
                     version ".tar.gz"))
               (sha256
                (base32
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fixes for MISO.
  2015-06-17 10:20 [PATCH] Fixes for MISO Ricardo Wurmus
@ 2015-06-23 12:50 ` Ludovic Courtès
  2015-06-23 12:54   ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-06-23 12:50 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel@gnu.org

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

> From b8c6ece9d658969a0ce8054e368df96ce293c30f Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Wed, 17 Jun 2015 12:14:39 +0200
> Subject: [PATCH 1/2] gnu: miso: Install executables.
>
> * gnu/packages/bioinformatics.scm (miso)[source]: Patch "setup.py" to use
>   "setuptools" so that executables are built.
> * gnu/packages/bioinformatics.scm (miso)[native-inputs]: Add "python2-mock"
>   and "python2-pytz".

OK.

> From 062066c95d8dca286feb063f544f20a686b00d7e Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Wed, 17 Jun 2015 12:16:40 +0200
> Subject: [PATCH 2/2] gnu: miso: Use HTTPS URL.
>
> * gnu/packages/bioinformatics.scm (miso)[source]: Use "https" protocol for
>   downloading the source tarball.

OK.

Don’t hesitate to push non-controversial changes like these after a
couple of days have passed.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fixes for MISO.
  2015-06-23 12:50 ` Ludovic Courtès
@ 2015-06-23 12:54   ` Ricardo Wurmus
  0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2015-06-23 12:54 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel@gnu.org


Ludovic Courtès <ludo@gnu.org> writes:

> Don’t hesitate to push non-controversial changes like these after a
> couple of days have passed.

Thank you, I'll do that.

~~ Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-23 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 10:20 [PATCH] Fixes for MISO Ricardo Wurmus
2015-06-23 12:50 ` Ludovic Courtès
2015-06-23 12:54   ` Ricardo Wurmus

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.