py3compile(1)

โœจ py3compile โ€” byte compile Python 3 source files โœจ

okay bestie, welcome to the py3compile page ๐Ÿ’– this is a General Commands Manual situation, section 1, and we're about to make your Python 3 files โœจbyte-compiledโœจ. it's giving compiler-wrapper realness, no cap.


๐ŸŒธ NAME ๐ŸŒธ

py3compile โ€” byte compile Python 3 source files ๐Ÿ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

py3compile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]

pycompile -p PACKAGE

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

so basically ๐Ÿซถ this is a wrapper around the Python standard library's py_compile module, and its whole job is byte-compiling Python 3 files. main character energy, extremely focused, does one thing and ate. ๐ŸŒˆ


โœจ OPTIONS โœจ

  • --version โ€” shows the program's version number and dips ๐Ÿšชโœจ
  • -h, --help โ€” shows this help message and exits, your little tour guide ๐ŸŽ€
  • -f, --force โ€” forces a rebuild of the byte-code files, even if the timestamps are already up-to-date. like, do it anyway, we said so ๐Ÿ’…๐Ÿ”ฅ
  • -O โ€” byte-compiles to .pyo files
  • -q, --quiet โ€” be quiet ๐Ÿคซ
  • -v, --verbose โ€” turns verbose mode on ๐Ÿ—ฃ๏ธ๐Ÿ’ฌ
  • *-p *PACKAGE, --package=PACKAGE โ€” specify the Debian package name whose files should be bytecompiled ๐Ÿ“ฆ
  • -V VRANGE โ€” forces private modules to be bytecompiled with the Python 3 version from the given range, regardless of the default Python 3 version in the system. and if there are no other options, it bytecompiles all public modules for the installed Python 3 versions that match the given range. VERSION_RANGE examples, bestie, look ๐Ÿ‘€:
    • 3.1 โ€” version 3.1 only,
    • 3.1- โ€” version 3.1 or newer,
    • 3.1-3.3 โ€” version 3.1 or 3.2,
    • -4.0 โ€” all supported 3.X versions
  • *-X *REGEXPR, --exclude=REGEXPR โ€” excludes items that match the given REGEXPR. and you can use this option multiple times to build up a whole list of things to exclude ๐Ÿšซ๐Ÿงš

๐Ÿ‘‘ Author ๐Ÿ‘‘

Piotr Oลผarowski, 2012-2013 ๐Ÿซถ โ€” iconic behavior, honestly.


okay that's the whole page, bestie ๐Ÿ’– this came to you from the py3compile(1) manual and it's dated in that footer spot at the bottom, but we're saying it cutely instead: py3compile(1), sending u love from the manual page footer ๐ŸŽ€โœจ periodt ๐Ÿ’…

๐Ÿ“ฆ where this page comes from