From f0fa2b25ba9d98644af3e79f025716c46fbed29a Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 5 Jun 2022 02:00:00 +0200 Subject: [PATCH] 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))