File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
import io
15
15
from pathlib import Path
16
16
17
- from distutils . version import StrictVersion
17
+ from tools . gyp . pylib . packaging . version import Version
18
18
19
19
# If not run from node/, cd to node/.
20
20
os .chdir (Path (__file__ ).parent )
@@ -1566,10 +1566,10 @@ def without_ssl_error(option):
1566
1566
# supported asm compiler for AVX2. See https://github.com/openssl/openssl/
1567
1567
# blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
1568
1568
openssl110_asm_supported = \
1569
- ('gas_version' in variables and StrictVersion (variables ['gas_version' ]) >= StrictVersion ('2.23' )) or \
1570
- ('xcode_version' in variables and StrictVersion (variables ['xcode_version' ]) >= StrictVersion ('5.0' )) or \
1571
- ('llvm_version' in variables and StrictVersion (variables ['llvm_version' ]) >= StrictVersion ('3.3' )) or \
1572
- ('nasm_version' in variables and StrictVersion (variables ['nasm_version' ]) >= StrictVersion ('2.10' ))
1569
+ ('gas_version' in variables and Version (variables ['gas_version' ]) >= Version ('2.23' )) or \
1570
+ ('xcode_version' in variables and Version (variables ['xcode_version' ]) >= Version ('5.0' )) or \
1571
+ ('llvm_version' in variables and Version (variables ['llvm_version' ]) >= Version ('3.3' )) or \
1572
+ ('nasm_version' in variables and Version (variables ['nasm_version' ]) >= Version ('2.10' ))
1573
1573
1574
1574
if is_x86 and not openssl110_asm_supported :
1575
1575
error ('''Did not find a new enough assembler, install one or build with
You can’t perform that action at this time.
0 commit comments