recursive-include elftools *.py
 recursive-include scripts *.py
 recursive-include examples *.py *.elf *.out
-recursive-include test *.py *.elf *.arm *.mips *.o *.so *.dat *.debug *.common
+recursive-include test *
+global-exclude *.py[cod]
+global-exclude __pycache__
 include README.rst
 include LICENSE
 include CHANGES
 
 
 # Following the readelf example, we ship our own.
 if platform.system() == "Darwin": # MacOS
-   raise NotImplementedError("Not supported on MacOS")
+    raise NotImplementedError("Not supported on MacOS")
 elif platform.system() == "Windows":
     raise NotImplementedError("Not supported on Windows")
 else: