|
14 | 14 | importio |
15 | 15 | frompathlibimportPath |
16 | 16 |
|
17 | | -fromdistutils.versionimportStrictVersion |
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 | fromgyp.commonimportGetFlavor |
| 31 | +frompackaging.versionimportVersion |
33 | 32 |
|
34 | 33 | # imports in tools/configure.d |
35 | 34 | sys.path.insert(0, str(tools_path/'configure.d')) |
@@ -1565,10 +1564,10 @@ def without_ssl_error(option): |
1565 | 1564 | # supported asm compiler for AVX2. See https://github.com/openssl/openssl/ |
1566 | 1565 | # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69 |
1567 | 1566 | openssl110_asm_supported= \ |
1568 | | - ('gas_version'invariablesandStrictVersion(variables['gas_version']) >=StrictVersion('2.23')) or \ |
1569 | | - ('xcode_version'invariablesandStrictVersion(variables['xcode_version']) >=StrictVersion('5.0')) or \ |
1570 | | - ('llvm_version'invariablesandStrictVersion(variables['llvm_version']) >=StrictVersion('3.3')) or \ |
1571 | | - ('nasm_version'invariablesandStrictVersion(variables['nasm_version']) >=StrictVersion('2.10')) |
| 1567 | + ('gas_version'invariablesandVersion(variables['gas_version']) >=Version('2.23')) or \ |
| 1568 | + ('xcode_version'invariablesandVersion(variables['xcode_version']) >=Version('5.0')) or \ |
| 1569 | + ('llvm_version'invariablesandVersion(variables['llvm_version']) >=Version('3.3')) or \ |
| 1570 | + ('nasm_version'invariablesandVersion(variables['nasm_version']) >=Version('2.10')) |
1572 | 1571 |
|
1573 | 1572 | ifis_x86andnotopenssl110_asm_supported: |
1574 | 1573 | error('''Did not find a new enough assembler, install one or build with |
|
0 commit comments