Pip 26.2: –only-deps solves 16 years of app deployment hacks 0 ▲ James O'Claire 2 hours ago · 5 min read1043 words · Tech · hide · 0 comments This has been one of my biggest annoyances working with Python and pip when dealing with projects where that are not meant to be installed as a package, how do you handle dependencies?Think projects like application backends, python scripts, REST APIs etc If you’ve ever struggled with this, you’re going to love this: a PR by Sebastian Höffner opened #13895 will add a new global flag to pip such that you can directly install any dependencies in your pyproject.toml without installing the package itself.pip install --only-deps .This is going, for me at least, be a huge boost in the way that I manage and distribute my projects on servers. Vastly simplifying poor manual workarounds that have built up over years.Since it’s been more than a decade in the making, let’s cover the history of poor Python souls stuck trying to figure out how to install dependencies for their scripts or apps. Requirements.txt? python -m pip freeze [options] Pip freeze is the classic sure fire first step towards… No comments yet. Log in to reply on the Fediverse. Comments will appear here.