Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ Change Log
* Partially address `2883 <https://github.com/pymupdf/PyMuPDF/issues/2883>`_: Improve the Python type annotations for fitz_new

We now define all class methods explicitly instead of with dynamic assignment.

* Removed `pymupdf.utils.Shape` class, was duplicate of `pymupdf.Shape`.

* Allow use of cibuildwheel to build and test on Pyodide.

* In documentation, added section about Linux wheels and glibc compatibility.

* Retrospectively mark #4544 as fixed in 1.26.4.
* Retrospectively mark `4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>`_ as fixed in 1.26.4.


**Changes in version 1.26.4**
Expand All @@ -32,12 +28,12 @@ Change Log
* **Fixed** `4457 <https://github.com/pymupdf/PyMuPDF/issues/4457>`_: Wrong characters displayed after font subsetting (w/ native method)
* **Fixed** `4462 <https://github.com/pymupdf/PyMuPDF/issues/4462>`_: delete_pages() does not accept a single int
* **Fixed** `4533 <https://github.com/pymupdf/PyMuPDF/issues/4533>`_: Open PDF error segmentation fault
* **Fixed** `4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>`_: About pdf_clip_page
* **Fixed** `4565 <https://github.com/pymupdf/PyMuPDF/issues/4565>`_: MacOS uses Tesseract and not Tesseract-OCR
* **Fixed** `4571 <https://github.com/pymupdf/PyMuPDF/issues/4571>`_: Broken merged pdfs.
* **Fixed** `4590 <https://github.com/pymupdf/PyMuPDF/issues/4590>`_: TypeError in utils.py scrub(): annot.update_file(buffer=...) is invalid
* **Fixed** `4614 <https://github.com/pymupdf/PyMuPDF/issues/4614>`_: Intercept bad widgets when inserting to another PDF
* **Fixed** `4639 <https://github.com/pymupdf/PyMuPDF/issues/4639>`_: pymupdf.mupdf.FzErrorGeneric: code=1: Director error: <class 'AttributeError'>: 'JM_new_bbox_device_Device' object has no attribute 'layer_name'
* **Fixed** `4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>`_: About pdf_clip_page

* Other:

Expand Down
4 changes: 1 addition & 3 deletions pipcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,9 +1771,7 @@ def build_extension(
#
log0(f'pyodide: PEP-3149 suffix untested, so omitting. {_so_suffix()=}.')
path_so_leaf = f'_{name}.so'
path_so = f'{outdir}/{path_so_leaf}'

rpath_flag = ''
rpath_flag = "-Wl,-rpath,'$ORIGIN'"
else:
rpath_flag = "-Wl,-rpath,'$ORIGIN',-z,origin"
path_so = f'{outdir}/{path_so_leaf}'
Expand Down
5 changes: 3 additions & 2 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def build():
# 2025-09-03: formally we put libraries in foo.lib; now it seems
# they need to be at top level in wheel.
#
(f'build/libqwerty.so', f'/'),
(f'build/libqwerty.so', f'foo/'),
]

p = pipcl.Package(
Expand Down Expand Up @@ -1297,7 +1297,8 @@ def getmtime(path):
for arg in args:
log(f' {arg!r}')
import pytest
pytest.main(args)
e = pytest.main(args)
assert e == 0, f'pytest.main() failed: {e=}'
return

if venv >= 2:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ def add(flavour, from_, to_):
add('d', f'{mupdf_build_dir}/libmupdf-threads.a', f'{to_dir_d}/lib/')
elif pyodide:
add('p', f'{mupdf_build_dir}/_mupdf.so', to_dir)
add('b', f'{mupdf_build_dir}/libmupdfcpp.so', '/')
add('b', f'{mupdf_build_dir}/libmupdf.so', '/')
add('b', f'{mupdf_build_dir}/libmupdfcpp.so', to_dir)
add('b', f'{mupdf_build_dir}/libmupdf.so', to_dir)
else:
add('p', f'{mupdf_build_dir}/_mupdf.so', to_dir)
add('b', pipcl.get_soname(f'{mupdf_build_dir}/libmupdfcpp.so'), to_dir)
Expand Down