slice2py(1)
π slice2py β the Slice to Python compiler π
okay bestie, welcome to the slice2py manual page, from the General Commands Manual section π she's the one who takes your Slice files and turns them into Python. no cap.
β¨ NAME β¨
slice2py β the Slice to Python compiler. that's it, that's her. π
πΈ SYNOPSIS πΈ
slice2py [options] [files]
π¦ DESCRIPTION π¦
so slice2py compiles Slice files to Python. and while it's doing that, the macro __SLICE2PY__ is defined during this compilation. periodt. π
the full tea β i mean, the full documentation β for slice2py lives online at:
https://doc.zeroc.com/ice/3.7/language-mappings/python-mapping/client-side-slice-to-python-mapping/code-generation-in-python
like, go read it if you want the deep lore, iykyk π
π OPTIONS π
every single one, babes. no skipping. we do not skip here. π
-h,--helpβ shows you a help message. literally the "what do i do" button π«Ά-v,--versionβ shows the compiler version. vibe check on which slice2py you're running β¨-DNAMEβ defines the preprocessor symbolNAME. give the symbol a name and set it free π-DNAME=DEFβ defines the preprocessor symbolNAMEwith the valueDEF. now she has a whole personality π-UNAMEβ undefines the preprocessor symbolNAME. we're un-defining her, it's giving closure π-IDIRβ adds the directoryDIRto the search path for#includedirectives. your includes need a home and you just gave them one π-Eβ prints the preprocessor output onstdout. no code gen, just the raw pre-processed goods π--output-dir DIRβ places the generated files into directoryDIR. put your babies in the folder you actually want them in π-d,--debugβ prints debug information showing the operation of the Slice parser. she's narrating her whole life, iconic π₯--dependβ prints dependency information to standard output by default, or to the file specified by the--depend-fileoption.
β οΈ heads up bestie: no code is generated when this option is specified. she's just telling you the deps, not building anything π
--depend-xmlβ prints dependency information in XML format to standard output by default, or to the file specified by the--depend-fileoption.
β οΈ same warning, same energy: no code is generated when this option is specified. XML only, no files, no cap π
--depend-file FILEβ directs dependency information to the specified file. the output format depends on whether--dependor--depend-xmlis also specified. choose your fighter, she follows your lead π§--allβ generates code for all Slice definitions, including those from included files. not just yours β everyone's πβ¨--checksum CLASSβ generates checksums for Slice definitions. for when you need that verification moment π--prefix PREFIXβ usesPREFIXas the prefix for generated file names. yes queen, brand your files π
π SEE ALSO π
the whole slice2* family, your new besties:
slice2cpp(1)slice2cs(1)slice2java(1)slice2js(1)slice2matlab(1)slice2objc(1)slice2php(1)slice2rb(1)slice2swift(1)
okay that's the whole page, mwah π go forth and compile. this was slice2py(1), hanging out in the General Commands Manual, and i'm obsessed with her fr fr. bye bestie, have the slayest day πβ¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- debian bookworm: zeroc-ice-compilers 3.7.8-2.1+b1 Β· GPL-2.0+exceptions
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 Β· GPL-2.0+exceptions
- ubuntu jammy: zeroc-ice-compilers 3.7.6-4ubuntu1 Β· GPL-2.0+exceptions
- ubuntu noble: zeroc-ice-compilers 3.7.10-2.1build1 Β· GPL-2.0+exceptions
- ubuntu questing: zeroc-ice-compilers 3.7.10-3.1
- ubuntu resolute: zeroc-ice-compilers 3.7.10-4build2 Β· GPL-2.0+exceptions
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms