Show More
@@ -83,6 +83,21 b' Python {py} detected.' | |||||
83 | printf(error, file=sys.stderr) |
|
83 | printf(error, file=sys.stderr) | |
84 | sys.exit(1) |
|
84 | sys.exit(1) | |
85 |
|
85 | |||
|
86 | import ssl | |||
|
87 | ||||
|
88 | try: | |||
|
89 | ssl.SSLContext | |||
|
90 | except AttributeError: | |||
|
91 | error = """ | |||
|
92 | The `ssl` module does not have the `SSLContext` class. This indicates an old | |||
|
93 | Python version which does not support modern security features (which were | |||
|
94 | added to Python 2.7 as part of "PEP 466"). Please make sure you have installed | |||
|
95 | at least Python 2.7.9 or a Python version with backports of these security | |||
|
96 | features. | |||
|
97 | """ | |||
|
98 | printf(error, file=sys.stderr) | |||
|
99 | sys.exit(1) | |||
|
100 | ||||
86 | if sys.version_info[0] >= 3: |
|
101 | if sys.version_info[0] >= 3: | |
87 | DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX'] |
|
102 | DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX'] | |
88 | else: |
|
103 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now