File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed
hstrat/stratum_retention_strategy/stratum_retention_algorithms/fixed_resolution_algo Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 1- import cppimport . import_hook
1+ from distutils . errors import CompileError
22
33from ._PolicySpec import PolicySpec
4- from ._PolicySpecNative import PolicySpecNative
54
6- impls = (PolicySpec , PolicySpecNative )
5+ impls = [
6+ PolicySpec ,
7+ ]
8+
9+ try :
10+ import cppimport .import_hook
11+ from ._PolicySpecNative import PolicySpecNative
12+ impls .append (PolicySpecNative )
13+ except (CompileError , ImportError , SystemExit ):
14+ import os
15+ os .environ ["HSTRAT_NATIVE_ERROR" ] = "1"
16+ pass
Original file line number Diff line number Diff line change 1- import cppimport . import_hook
1+ from distutils . errors import CompileError
22
33from ._FromPredKeepRank import FromPredKeepRank
44from ._GenDropRanks import GenDropRanks
5- from ._GenDropRanksNative import GenDropRanksNative
65
7- impls = (FromPredKeepRank , GenDropRanks , GenDropRanksNative )
6+ impls = [
7+ FromPredKeepRank ,
8+ GenDropRanks ,
9+ ]
10+
11+ try :
12+ import cppimport .import_hook
13+ from ._GenDropRanksNative import GenDropRanksNative
14+ impls .append (GenDropRanksNative )
15+ except (CompileError , ImportError , SystemExit ):
16+ import os
17+ os .environ ["HSTRAT_NATIVE_ERROR" ] = "1"
18+ pass
You can’t perform that action at this time.
0 commit comments