From 9726ae1d8add46b01bd0b81d43129a2c2f952780 Mon Sep 17 00:00:00 2001
From: Ned Batchelder <ned@edx.org>
Date: Tue, 20 Dec 2016 10:59:22 -0500
Subject: [PATCH] Don't delete .pyc files for space. Sandboxes need them.

---
 playbooks/roles/edx_ansible/templates/pre-box.j2 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/playbooks/roles/edx_ansible/templates/pre-box.j2 b/playbooks/roles/edx_ansible/templates/pre-box.j2
index 8b2859e..1e23c2c 100644
--- a/playbooks/roles/edx_ansible/templates/pre-box.j2
+++ b/playbooks/roles/edx_ansible/templates/pre-box.j2
@@ -13,8 +13,9 @@ apt-get autoclean -y
 # Clean out pip caches.
 find / -type d -path '*/.cache/pip' -print -exec rm -rf '{}/*' \;
 
-# Remove all the .pyc files.
-find /edx/app -name '*.pyc' -delete
+# We used to remove all .pyc files. This caused problems in sandboxes,
+# where code couldn't write .pyc files, and everything took too long.
+#   find /edx/app -name '*.pyc' -delete
 
 # Last thing: fill the disk with zeros so they'll compress well.
 # The dd command fails because the disk fills, which is the point, so silence
--
libgit2 0.26.0