PYVERSIONS(1)

πŸ“¦ version 2.7.18, in ubuntu jammy

πŸ’– PYVERSIONS(1) πŸ’–

okay bestie, pull up a chair, because this is pyversions from the manual pages and she is exactly what she sounds like: your little python-version gossip girl 🐍✨


✨ NAME ✨

pyversions β€” print python version information

like. that's the whole job. she prints python version info. iconic behaviour, no notes. πŸ’…


🌸 SYNOPSIS 🌸

pyversions [-h] [-v] [<options>]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: pyversions prints info about the python runtimes you've got installed and which ones are supported, plus which one is the default runtime. and β€” plot twist β€” she also parses the info out of the PythonVersion fields in the package control file. multitasking queen πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • -d, --default β€” show the default python version. that's the one holding the crown πŸ‘‘
  • -s, --supported β€” show the supported python versions. the whole approved squad πŸ’œ
  • -r, --requested [<version string>|<control file>] β€” reads the value of the XS-Python-Version field in the source section of a control file and shows you all the python versions that match. now, the parameter gets interpreted as a version string if it's not the name of a file. and if the XS-Python-Version field is just… missing? she goes and gets the version info from debian/pyversions instead. and if you pass no parameter at all, she falls back to listing the supported Python versions after checking debian/control and debian/pyversions. she really said "I'll figure it out myself" 😭
  • -i, --installed β€” show the installed supported python versions. the ones actually living on your machine 🏠
  • -v, --version β€” limit the output to just the version numbers of the python versions. no extra chatter, just numbers, periodt ✨
  • -h, --help β€” print a help text. the classic. the lifesaver 🫢

🌈 SEE ALSO 🌈

Python policy.

(yeah that's it. go read the Python policy if you want the deep lore πŸ“œ)


🧚 AUTHOR 🧚

Matthias Klose


and that's the whole page, bestie!! footer vibes are just PYVERSIONS() β€” no source, no version, no date, she's mysterious like that πŸ™ˆπŸ’– go forth and check your python versions, you've got this fr fr πŸ“β­

πŸ“¦ where this page comes from