UPGRADE_PYTHONCAPI.PY(1)

πŸ“¦ version 0^20261010.f1fb61f, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– UPGRADE_PYTHONCAPI.PY πŸ’–

okay so bestie, welcome to the User Commands section of the manual, and today's main character is upgrade_pythoncapi.py β€” a whole lil script whose entire job is glow-ups. ✨


🌸 NAME 🌸

upgrade_pythoncapi.py – upgrade C extension modules to newer Python C API

like. it takes your crusty old C extension and gives it a makeover into newer Python C API. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

upgrade_pythoncapi.py [-h] [-o OPERATIONS] [-q] [-c] [-B] [-C] [-d PATH]
[file_or_directory ...]

look at her. so many lil flags. so much power. πŸŽ€


✨ OPTIONS ✨

πŸ“ POSITIONAL ARGUMENTS

  • file_or_directory β€” the actual files or directories you're pointing at, bestie. this is the what do you want me to work on part. pass one, pass a bunch, it's giving "the more the merrier." 🫢

πŸ’œ OPTIONAL ARGUMENTS

  • -h, --help β€” shows you a help message and then dips (exits). iconic behavior honestly. πŸ’–
  • -o OPERATIONS, --legacy OPERATIONS β€” a space separated list of operation names to apply. yes, space separated, not comma, don't come for me. it's literally right there. 🌸
  • -q, --quiet β€” quiet mode. shhh. 🀫 the script stops yapping and just does the thing.
  • -c, --to-stdout β€” writes the output into stdout instead of modifying files in-place. and yes, it implies quiet mode β€” she's not gonna chat while she's piping. πŸ”₯
  • -B, --no-backup β€” do not create .old backup files. bold. brave. slightly terrifying. you've been warned, bestie. πŸ’€
  • -C, --no-compat β€” don't add:
#include "pythoncapi_compat.h"

that's it. that's the whole vibe. just skipping the compat header. 🧚

  • -d PATH, --download PATH β€” downloads the latest pythoncapi_compat.h file to the designated PATH. fresh off the press, straight to your directory. πŸ‘‘

⭐ reminder for the girlies: -c implies -q, and -B means no .old backups exist β€” so know what you're doing before you commit to the no-backup lifestyle. fr fr.

πŸŽ€ a lil sign-off πŸŽ€

this whole page is part of the User Commands manual, dated January 2022 β€” and that's the vibe check, we're done here. go upgrade something. slay. πŸ’…βœ¨πŸŒˆ

UPGRADE_PYTHONCAPI.PY(1)