diff options
author | Arun Isaac | 2025-09-08 12:01:53 +0100 |
---|---|---|
committer | Arun Isaac | 2025-09-08 12:01:53 +0100 |
commit | adcba86dc75d3ab8a0be3a7f57a4c0e8c38c6ced (patch) | |
tree | 7f757d41edafe0bb852ff767ba37209f1dcccaca | |
parent | a662340e3005500cf3d76a937ee13e103ff71fb3 (diff) | |
download | pyhegp-adcba86dc75d3ab8a0be3a7f57a4c0e8c38c6ced.tar.gz pyhegp-adcba86dc75d3ab8a0be3a7f57a4c0e8c38c6ced.tar.lz pyhegp-adcba86dc75d3ab8a0be3a7f57a4c0e8c38c6ced.zip |
Exclude .guix and e2e-tests from the pyhegp package.
-rw-r--r-- | .guix/pyhegp-package.scm | 15 |
1 files changed, 13 insertions, 2 deletions
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 |