SIP is a tool for creating Python bindings for C and C++ libraries. It is primarily used to generate Python modules that allow Python code to call C/C++ functions and classes directly. Maintained by Riverbank Computing, it is the foundation for PyQt. The current version is 6.15.3, with releases typically tied to PyQt development.
pip install sipVerified import paths — ran on the pinned version, not inferred.
While SIP is mainly a build tool for C/C++ extensions, the installed `sip` module provides introspective information about the SIP environment. The primary use case involves defining `.sip` files and leveraging the `sip-build` command-line tool to generate Python bindings for a C/C++ library, typically as part of a larger build process.
Migrate your binding generation process to use `sip-build`. Remove calls to `sip.setapi()` from your `.sip` files or generated Python code. Consult the SIP v6 documentation for updated `.sip` file directives and build configurations (e.g., `PyQt-builder`).
Ensure that the `sip` package version precisely matches the requirements of the Python library you are using (e.g., PyQt, PySide). If you manage multiple Python environments, use virtual environments to isolate dependencies. Always upgrade `sip` alongside the primary library it serves.
Verify compiler installations, associated environmental variables (e.g., `VCINSTALLDIR` for MSVC, `PATH` for GCC/Clang), and ensure build tools are available. Common issues include 'Microsoft Visual C++ 14.0 is required' errors on Windows, or missing `g++` on Linux.
No dependency data recorded yet.