Skip to content

Commit 8ed689e

Browse files
committed
add shutdown() and update install notes
1 parent 3a12adb commit 8ed689e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.rst

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- drop support for Python 2.7, require Python >= 3.7 [kleisauke]
44
- migrate to `pyproject.toml` [kleisauke]
55
- fix a small memleak in `write_to_buffer()` [kleisauke]
6+
- add `[binary]` install option [kleisauke]
7+
- add `shutdown()`
68

79
## Version 2.2.3 (released 28 April 2024)
810

README.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ with:
7878
$ pip install "pyvips[binary]"
7979
8080
This installs a self-contained package with the most commonly needed
81-
libraries. If your platform is unsupported or the pre-built binary is
82-
unsuitable, you can install libvips globally instead.
81+
libraries. It should just work on most common platforms, including Linux,
82+
Window and macOS, with x64 and ARM CPUs.
83+
84+
If your platform is unsupported or the pre-built binary is
85+
unsuitable, you can install libvips separately instead.
8386

8487
Local installation
8588
------------------
@@ -191,6 +194,7 @@ Local user install:
191194

192195
.. code-block:: shell
193196
197+
$ pip install pyvips-binary==8.16.0
194198
$ pip3 install -e .
195199
$ pypy -m pip --user -e .
196200

pyvips/voperation.py

+5
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,11 @@ def add_name(gtype, a, b):
540540
print(' ' + docstr)
541541

542542

543+
def shutdown():
544+
"""Shut libvips down."""
545+
vips_lib.vips_shutdown()
546+
547+
543548
def cache_set_max(mx):
544549
"""Set the maximum number of operations libvips will cache."""
545550
vips_lib.vips_cache_set_max(mx)

0 commit comments

Comments
 (0)