From adcba86dc75d3ab8a0be3a7f57a4c0e8c38c6ced Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 8 Sep 2025 12:01:53 +0100 Subject: Exclude .guix and e2e-tests from the pyhegp package. --- .guix/pyhegp-package.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.guix') diff --git a/.guix/pyhegp-package.scm b/.guix/pyhegp-package.scm index 20231cd..3eb3685 100644 --- a/.guix/pyhegp-package.scm +++ b/.guix/pyhegp-package.scm @@ -43,8 +43,19 @@ (source (local-file ".." "pyhegp-checkout" #:recursive? #t - #:select? (or (git-predicate (dirname (current-source-directory))) - (const #t)))) + #:select? (lambda (file stat) + ;; If .guix is included, changes + ;; to other files under .guix—such + ;; as the hsmice + ;; test—unnecessarily trigger a + ;; rebuild of pyhegp. This could + ;; be a nuisance when hacking on + ;; the test scripts. + (and (not (string-contains file "/.guix/")) + (not (string-contains file "/e2e-tests/")) + ((or (git-predicate (dirname (current-source-directory))) + (const #t)) + file stat))))) (build-system pyproject-build-system) (arguments (list #:phases -- cgit 1.4.1