Socket
Socket
Sign inDemoInstall

sknrf-core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sknrf-core

Object Oriented Nonlinear RF/Microwave Engineering


Maintainers
1

scikit-nrf-core

Build Flow

Building and Deploying Python code with native shared libraries a continuously involving ordeal, hence I have provided the equivalent CMake/Makefile command in comments to be relatable to C++. Internally Cmake and Make are invoked. The build-flow currently uses setuptools, which is deprecated in Python 3.12.

Install Dependencies

See requirements.txt

Environment Variables

Variable Default Value Description
LLVM_INSTALL_DIR ${HOME}/libclang libclang directory
SKNRF_DIR import site ; site.getsitepackages()[0] Python sknrf-core Module Directory
CONDA_PREFIX /usr/local C++ Sysroot
VISA_LIB @py Visa Library Location

Release Build

   python3 setup.py clean                                   # sudo make clean
   python3 setup.py config    `                             # cmake ..
   python3 setup.py build                                   # make
   python3 setup.py install                                 # sudo make install

python3 setup.py install will take a while to execute because it builds the python documentation. As an alternative python3 setup.py develop creates the same outcome by symbolicly linking the src directory sknrf to a file in the site-packages folder. NOTE: This is a PYTHON-SPECIFIC symbolic link that works cross-platform for PYTHON ONLY. You still need to install all other files as follows!

   python3 setup.py clean                                   # sudo make clean
   python3 setup.py config    `                             # cmake ..
   python3 setup.py build                                   # make
   python3 setup.py install_clib                            # sudo make install
   python3 setup.py install_data                            # sudo make install
   python3 setup.py develop                                 # All changes in the source directory are now installed instantly
   python3 setup.py install_doc                             # sudo make install

Example

   python3 ${SKNRF_DIR}/sknrf/main.py

Tests

   cd ${SKNRF_DIR}/sknrf ; nosetests --config=nose.cfg

Runtime Configuration

${SKNRF_DIR}/sknrf/sknrf.yml contains runtime configuration settings. Beware of Environment Variables set in this file.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc