Package: python-ics
DescriptionPython wrapper for interfacing to IntrepidCS Hardware.Installingpip install python_icsPlatform specific Installation notesWindowsWindows requires icsneo40.dll to be installed in the PATH. This can be obtained through vspy3 or our hardware installation kit found here:https://cdn.intrepidcs.net/updates/files/RP1210KitInstall.zipLinuxLinux builds uselibicsneoand are built againstmanylinuxusing cibuildwheel.libicsneolegacy.so is bundled with the wheel and python_ics will automatically use it.MacOSMac builds uselibicsneoand are built using cibuildwheellibicsneolegacy.dylib is bundled with the wheel and python_ics will automatically use it.Documentationhttp://python-ics.readthedocs.io/Building from sourceBuilding from source requires clang and clang-format to be present on the build machine.python_ics has submodules, please be sure to initial all submodules also.PS>gitclonegit@github.com:intrepidcs/python_ics.gitPS>cdpython_icsPS>gitsubmoduleupdate--initPS>clang--versionclangversion11.1.0Target:x86_64-pc-windows-msvcThreadmodel:posixInstalledDir:C:\ProgramFiles\LLVM\binPS>clang-format--versionclang-formatversion11.1.0PS>python-mpipinstall.Debugging on Windows with Visual Studio CodeBuild and install python_ics for debug. When installing python choose the following:Customize Installation -> Advanced OptionsCheck Download debugging symbolsCheck Download debug binariesBuild python with debug:Install Visual Studio 2019 build tools(NOTE: As of 2/5/24, it looks like MSVC 2022 does not build correctly with setuptools and debug configurations). You should be able to build from source already.Create virtual environment and activate it (powershell):python -m venv .venv.\.venv\Scripts\Activate.ps1Install dependencies:python -m pip install -r requirements.txtBuild in debug (-gflag):python setup.py build -gInstall into our virtual environment:python setup.py install --forceInside visual studio code:Open the root python_ics directorycode C:\Path\To\python_icsMake sure the python extension is installed (ctrl+shift+x)PythonPython DebuggerSelect the python interpreter from our virtual environment (bottom right with a python file open in the editor).Open and place a breakpoint insrc/icsdebug.pylaunch "Python: Debug icsdebug.py"Note the PID that is outputted to terminal (Can also addos.getpid()to watch window)Place a breakpoint inside the function you'd like to debug inmethods.cpplaunch "Debugger Attach" (launch.json) and enter the pid when prompted.enjoy!License - MITCopyright (c) Intrepid Control Systems, Inc.Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.