diff --git a/.gitignore b/.gitignore
index e00516aaa716..f989dee3bcb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+__pycache__/
 build/
 patches/
 *.patch
+*.pyc
