mirror of https://github.com/mamba-org/mamba.git
ignore import error when conda_build_cross_compilation is set
This commit is contained in:
parent
751e556d3c
commit
7c57078b6e
|
@ -1 +1,9 @@
|
|||
from libmambapy.bindings import * # noqa: F401,F403
|
||||
import os
|
||||
|
||||
try:
|
||||
from libmambapy.bindings import * # noqa: F401,F403
|
||||
except ImportError as e:
|
||||
if not os.environ.get("CONDA_BUILD_CROSS_COMPILATION"):
|
||||
raise e
|
||||
else:
|
||||
print("libmambapy import error ignored due to cross compilation")
|
||||
|
|
Loading…
Reference in New Issue