mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-15 21:01:26 +00:00
Importing from usrp_mpm.rpc_server imports a lot of dependencies which are unnecessary if the rpc_server functionality is not actually needed. Move the decorator functions to a new file rpc_utils.py and import only from this file inside periph_manager. usrp_hwd.py needs additional dependencies which are specifically imported: - usrp_mpm.rpc_server.spawn_rpc_process - usrp_mpm.discovery.spawn_discovery_process
29 lines
661 B
Python
29 lines
661 B
Python
#
|
|
# Copyright 2017 Ettus Research, a National Instruments Company
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
"""
|
|
MPM Module
|
|
"""
|
|
|
|
__simulated__ = ("${MPM_DEVICE}" == "sim")
|
|
|
|
from . import compat_num
|
|
from . import mpmtypes
|
|
from . import gpsd_iface
|
|
from .mpmlog import get_main_logger
|
|
|
|
if not __simulated__:
|
|
from . import libpyusrp_periphs as lib
|
|
from . import periph_manager
|
|
from . import dboard_manager
|
|
from . import xports
|
|
from . import cores
|
|
from . import chips
|
|
else:
|
|
from . import periph_manager
|
|
|
|
__version__ = periph_manager.__version__
|
|
__githash__ = periph_manager.__githash__
|
|
__mpm_device__ = periph_manager.__mpm_device__
|