SIP(1)
πΈ SIP(1) β the bindings generator, bestie edition πΈ
ok so this is sip from the General Commands Manual section 1, and she's here to turn your spec files into C++/Python bindings. iykyk. π
β¨ NAME β¨
sip β generates C++/Python bindings ππ₯
π SYNOPSIS π
sip [-h] [-V] [-a file] [-b file] [-B tag] [-c dir] [-d file] [-D] [-e]
[-f] [-g] [-I dir] [-j number] [-k] [-m file] [-n name] [-o] [-p module]
[-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-y file]
[-z file] [@file] [file]
π¦ DESCRIPTION π¦
so basically sip takes a set of specification files and generates C++ code, documentation and build files. that's her whole job. she's booked and busy β¨
the format of the needed specification file is similar to a C++ header. and sip includes run-time support for the generated code. no cap.
π OPTIONS π
-hβ show a lil summary of all the options. your cheat sheet fr.-Vβ display thesipversion number. vibe check on which sip you're running.-afile β the name of the QScintilla API file. if you don't indicate it, it will not be generated. sad but true.-bfile β the name of the build file. if you don't indicate it, it will not be generated.-Btag β add tag to the list of timeline backstops. > β οΈ deprecated, bestie β it's giving legacy energy.-cdir β the name of the directory where the generated source file will be put. if you don't indicate it, no code will be generated. so likeβ¦ use it. π-dfile β the name of the documentation file. if you don't indicate it, no documentation will be generated. > β οΈ also deprecated. the elders have spoken.-Dβ generate code for a debug build of Python. for the debugging girlies π«Ά-eβ enable support for exceptions. disabled by default, so it's giving opt-in only.-fβ handle warnings as errors. harsh but iconic π-gβ always release and reacquire the GIL. main character threading behavior.-Idir β directory wheresipcan search for included files. her little treasure map πΊοΈ-jnumber β splits the generated code into number files (1 by default). this flag was added for parallel compilation on SMP machines. so yes, she's doing the most, on purpose π₯-kβ support keyword arguments in functions and methods. kwarg girlies rise π-mfile β the name of the XML export file. if you don't indicate it, the file will not be generated.-nname β the qualified name of the private copy of thesipmodule. very demure, very private β¨-oβ enable the automatic generation of docstrings. disabled by default β flip that switch, bestie.-pmodule β give the name of the consolidated module this module should be a component of. she's in her group-project era π-Pβ enable the protected/public hack. yes it's called a hack. we don't question the hack. π-rβ enable tracing on generated code. she's nosy and we love that.-ssuffix β the suffix used for generated C or C++ files (".c"or".cpp"if none specified).-ttag β the version/platform to generate code for. pick your target, babe π―-wβ enable warning messages. let her talk.-xfeature β disable a feature. not everything deserves to make the cut π«-Xid:file β create the extracts for an id in a file.-yfile β the name of the.pyistub file to generate. if you don't indicate it, it will not be generated. type-hint besties, this one's for you π§-zfile β the name of a file containing additional command line flags. > β οΈ this option is deprecated, use@fileinstead. old news, move on, we're doing@filenow.@file β the name of a file containing more command line flags. the modern way to do the-zthing πfileβ the name of the file containing the specification. if you skip it,sipwill expect to be fed bystdin. so like, she'll just sit there waiting for you to say something π don't leave her hanging.
π AUTHOR π
this manual page was written by Ricardo Javier Cardenes Medina <rcardenes@debian.org>, Torsten Marek <shlomme@debian.org> and Dmitry Shachnev <mitya57@debian.org>, for the Debian project (but may be used by others). legends, honestly π
ok that's the whole page, you ate that π β¨ go generate some bindings bestie, and remember: every flag above is real, every default is real, and every deprecation is real. periodt.
sign-off time π β this is SIP(1), dated 2019-10-15, and it lives in the General Commands Manual section. mwah π
π¦ where this page comes from
- debian bookworm: sip-dev 4.19.25+dfsg-5+b1 Β· SIP OR GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: sip-dev 4.19.25+dfsg-3build1 Β· SIP OR GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: sip-dev 4.19.25+dfsg-5build3 Β· SIP OR GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: sip-dev 4.19.25+dfsg-5build5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms