--- a/setup.py
+++ b/setup.py
@@ -280,6 +280,9 @@ package_data = {
     "Crypto.Util" : [ "*.pyi" ],
 }
 
+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",
