Prahlad Yeri
@prahladyeri.bsky.social
7 followers 21 following 5 posts
https://prahladyeri.github.io/ Freelance Programmer 💻 | Writer ✍️ Technology | Vipassana | Minimalism
Posts Media Videos Starter Packs
prahladyeri.bsky.social
For assured guarantees, you can use the --dry-run switch. This pip command will just test whether installation is possible without actually installing it. Once it passes, you can remove the switch and install it.

pip install --dry-run <package>
prahladyeri.bsky.social
Pip will enforce the constraints specified by the developer. For example, it won’t install the package on Python <3.4, and it will only install requests ≥2.0 in this example. It's up to the developer to set these guardrails or constraints.
prahladyeri.bsky.social
The way is part of the setup process itself. In setup.py, you can specify which exact dependency package versions and python version you want your own package to be compatible with:

install_requires=['requests >= 2.0'],
python_requires = ">= 3.4",
prahladyeri.bsky.social
This is great! Is this something that came up recently with 8.3+ release or always existed in PHP?