summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-01-20 11:08:58 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-01-20 11:08:58 -0500
commit49ad2069b87be922d0fac034e7bb4a310154a9e6 (patch)
treeaeae2ec8e7c76f7ad9b0b02414af0359369c0331 /setup.py
parent1df6a7a1e784196e54d0476ccbae5107d32ee5bf (diff)
downloadcherrypy-git-49ad2069b87be922d0fac034e7bb4a310154a9e6.tar.gz
Exclude _cpcompat_subprocess when building on Python 3; Fixes #1204
--HG-- branch : cherrypy-3.2.x
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index fb971318..da25ad97 100644
--- a/setup.py
+++ b/setup.py
@@ -17,11 +17,12 @@ import sys
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):