Commits

Jason R. Coombs  committed 528ff28

Exclude _cpcompat_subprocess when building on Python 3; Fixes #1204

  • Participants
  • Parent commits e7ef72b
  • Branches cherrypy-3.2.x

Comments (0)

Files changed (1)

 import re
 
 class cherrypy_build_py(build_py):
-    "Custom version of build_py that selects Python-specific wsgiserver"
+    "Custom version of build_py that excludes Python-specific modules"
     def build_module(self, module, module_file, package):
         python3 = sys.version_info >= (3,)
         if python3:
-            exclude_pattern = re.compile('wsgiserver2|ssl_pyopenssl')
+            exclude_pattern = re.compile('wsgiserver2|ssl_pyopenssl|'
+                '_cpcompat_subprocess')
         else:
             exclude_pattern = re.compile('wsgiserver3')
         if exclude_pattern.match(module):