Skip to content

pipInstall2 2.4.1

Latest

Choose a tag to compare

@stuartofmt stuartofmt released this 25 Nov 17:22
· 10 commits to master since this release

pipInstall2 2.4.1, for DSF 3.6 and 3.7.

Install: download pipInstall2.py below and follow Installation Notes.

Documentation: README.md · special_cases.md · change-notes.md

Highlights since 2.4.0

  • Security: no commands go through a shell; git+ URLs are checked (https, ssh or file only); pip options such as --extra-index-url, -r and --user are refused; requirements files must be inside the plugin's dsf folder; passwords and tokens in git URLs are hidden in the log
  • The venv is kept between runs instead of being rebuilt every time. It is still rebuilt for a different Python version (e.g. after upgrading Bookworm to Trixie), if it is broken, or with the new --clear entry. Packages that are no longer listed are removed
  • Works without a network when nothing new is needed - the pip upgrade gives up after a few seconds instead of holding up the install
  • Each package is downloaded once per run (a cache of its own for each run, deleted at the end)
  • Wrong results fixed: two entries asking for different versions of one package, or a later entry changing a package an earlier one asked for, now fail (exit code 10) instead of reporting success
  • Modules from apt that pip has no information about (e.g. libcamera, pykms) are found without importing them. A version condition on an import name (e.g. gi>=3.40) stops with exit code 11 and names the PyPI package to use
  • Clearer errors: the reason is logged when the venv cannot be created; unexpected errors exit with code 9 instead of 1 ("no manifest")

Behaviour change: because the venv is kept, a package with no version condition keeps the version it was first installed with. Use a condition (e.g. >=2.0) or --clear to get a newer one.

Full list: change-notes.md