guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/07: gnu: python-pyodbc: Remove precompiled .pyc files from source.


From: guix-commits
Subject: 01/07: gnu: python-pyodbc: Remove precompiled .pyc files from source.
Date: Sat, 11 Jun 2022 15:00:53 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit f0fa2b25ba9d98644af3e79f025716c46fbed29a
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jun 5 02:00:00 2022 +0200

    gnu: python-pyodbc: Remove precompiled .pyc files from source.
    
    * gnu/packages/databases.scm (python-pyodbc)[source]: Add a snippet.
    Remove no-op file-name.
---
 gnu/packages/databases.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 9cb5491f22..8ae9c674fb 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3050,7 +3050,10 @@ for ODBC.")
        (uri (pypi-uri "pyodbc" version))
        (sha256
         (base32 "0skjpraar6hcwsy82612bpj8nw016ncyvvq88j5syrikxgp5saw5"))
-       (file-name (string-append name "-" version ".tar.gz"))))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Delete precompiled binaries.  The corresponding source is included.
+        #~(for-each delete-file (find-files "." "\\.pyc$")))))
     (build-system python-build-system)
     (inputs
      (list unixodbc))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]