|
14 | 14 | import io
|
15 | 15 | from pathlib import Path
|
16 | 16 |
|
17 |
| -from distutils.version import StrictVersion |
18 |
| - |
19 | 17 | # If not run from node/, cd to node/.
|
20 | 18 | os.chdir(Path(__file__).parent)
|
21 | 19 |
|
|
30 | 28 |
|
31 | 29 | sys.path.insert(0, str(tools_path / 'gyp' / 'pylib'))
|
32 | 30 | from gyp.common import GetFlavor
|
| 31 | +from packaging.version import Version |
33 | 32 |
|
34 | 33 | # imports in tools/configure.d
|
35 | 34 | sys.path.insert(0, str(tools_path / 'configure.d'))
|
@@ -1631,10 +1630,10 @@ def without_ssl_error(option):
|
1631 | 1630 | # supported asm compiler for AVX2. See https://github.com/openssl/openssl/
|
1632 | 1631 | # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
|
1633 | 1632 | openssl110_asm_supported = \
|
1634 |
| - ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \ |
1635 |
| - ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \ |
1636 |
| - ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \ |
1637 |
| - ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10')) |
| 1633 | + ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \ |
| 1634 | + ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \ |
| 1635 | + ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \ |
| 1636 | + ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10')) |
1638 | 1637 |
|
1639 | 1638 | if is_x86 and not openssl110_asm_supported:
|
1640 | 1639 | error('''Did not find a new enough assembler, install one or build with
|
|
0 commit comments