summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-10-24 21:23:20 +0000
committerRicardo Wurmus <rekado@elephly.net>2021-10-24 21:23:20 +0000
commitda526f33f2563508ffc0eff2e35c9c15be29f29e (patch)
treef1235c1b76ad62fdce4d5a41f258dbdbde6d14e4
parent3eeae68af1f95448c8a4ebf98d7b49ccb86f273e (diff)
downloadguix-da526f33f2563508ffc0eff2e35c9c15be29f29e.tar.gz
gnu: cutadapt: Regenerate Cython files.
* gnu/packages/bioinformatics.scm (cutadapt)[arguments]: Add phase
'always-cythonize.
-rw-r--r--gnu/packages/bioinformatics.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index ca21dcae2c..fc8b936d2a 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2616,6 +2616,16 @@ annotations of the genome.")
                (base32
                 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'always-cythonize
+           (lambda _
+             (delete-file "src/cutadapt/_align.c")
+             ;; If PKG-INFO exists, setup.py decides not to run Cython.
+             (substitute* "setup.py"
+               (("os.path.exists\\('PKG-INFO'\\):")
+                "os.path.exists('totally-does-not-exist'):")))))))
     (inputs
      `(("python-dnaio" ,python-dnaio)
        ("python-xopen" ,python-xopen)))