Remove dependency on numba
We only use numba to try and disable its warnings. As a result we only need numba if it already exists in the env. So we remove that dependency from setup.py to avoid issues with conflicting versions in Docker, and make the import optional.
This commit is contained in:
parent
f4c55b3ea0
commit
1c2e7c1df8
|
@ -98,13 +98,17 @@ def _launch_app():
|
|||
import sys
|
||||
import warnings
|
||||
|
||||
try:
|
||||
from numba.core.errors import NumbaPerformanceWarning
|
||||
|
||||
warnings.simplefilter("ignore", category=NumbaPerformanceWarning)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# TODO: Find a more elegant way to prune omni logging
|
||||
# sys.argv.append("--/log/level=warning")
|
||||
# sys.argv.append("--/log/fileLogLevel=warning")
|
||||
# sys.argv.append("--/log/outputStreamLevel=error")
|
||||
warnings.simplefilter("ignore", category=NumbaPerformanceWarning)
|
||||
|
||||
# Try to import the isaacsim module that only shows up in Isaac Sim 4.0.0. This ensures that
|
||||
# if we are using the pip installed version, all the ISAAC_PATH etc. env vars are set correctly.
|
||||
|
|
Loading…
Reference in New Issue