summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-05-23 14:49:13 -0400
committerBen Sima <ben@bsima.me>2024-05-23 14:49:13 -0400
commit8e96ed57dca9ddc7e0067dbce52e0aa52754a7c6 (patch)
tree2f8ea7742bbbf35b3e71d36268b4efcdcceb0797
parent93fc94363e6aeeb7bf45cdb57af3179e66933813 (diff)
Put __pycache__ in _/int
This shouldn't be polluting the main namespace.
-rw-r--r--.envrc3
-rw-r--r--.gitignore1
-rw-r--r--Biz/Bild.hs2
3 files changed, 4 insertions, 2 deletions
diff --git a/.envrc b/.envrc
index 8fa2948..f4cd8d6 100644
--- a/.envrc
+++ b/.envrc
@@ -25,6 +25,9 @@
# library/linkable bild outputs go here
export LTDL_LIBRARY_PATH=$CODEROOT/_/lib
#
+# intermediate compilation artifacts go here
+ export PYTHONPYCACHEPREFIX=$CODEROOT/_/int
+#
# Biz/Dragons.hs:
export GITHUB_CLIENT_ID=aa575dc96263bc99556d
export GITHUB_CLIENT_STATE=$(cat /proc/sys/kernel/random/uuid)
diff --git a/.gitignore b/.gitignore
index ad99c04..c9a99bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,5 +15,4 @@ tags
dist*
.envrc.local
.direnv/
-__pycache__
Biz/Mynion/Prompt.md
diff --git a/Biz/Bild.hs b/Biz/Bild.hs
index a67c1c2..cb3fe16 100644
--- a/Biz/Bild.hs
+++ b/Biz/Bild.hs
@@ -275,7 +275,7 @@ test_isGitIgnored =
res <- isGitIgnored "_"
res @=? True,
Test.unit "filters many" <| do
- traverse isGitIgnored ["Biz/Bild.hs", "__pycache__"]
+ traverse isGitIgnored ["Biz/Bild.hs", "TAGS"]
+> (@=? [False, True])
]