--- a/setup.py
+++ b/setup.py
@@ -293,6 +293,9 @@ package_data = {
     ],
 }
 
+packages = [i for i in packages if not i.startswith('Crypto.SelfTest')]
+package_data = {k: v for k, v in package_data.items() if not k.startswith('Crypto.SelfTest')}
+
 ext_modules = [
     # Hash functions
     Extension("Crypto.Hash._MD2",