Skip to content

Commit 4fe6445

Browse files
committed
Q&D adaption to bdist_wheel relocation (fixes #326)
1 parent 067847a commit 4fe6445

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/devel/changelog_staging.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Changelog for next release
77
- `PdfPage.get_objects()`: Don't register pageobjects as children, because they don't need to be closed by the caller when part of a page. This avoids excessive caching of weakrefs that are not cleaned up with the object they refer to.
88
- Fixed another dotted filepath blunder in the `extract-images` CLI. (The `PdfImage.extract()` API is not affected this time.)
9+
- Adapted setup code to `bdist_wheel` relocation (moved from wheel to setuptools).
910
- Fixed installation with reference bindings (`PDFIUM_BINDINGS=reference`) by adding a missing `mkdir` call and actually including them in the sdist. (In older versions, this can be worked around by cloning the repository and creating the missing directory manually before installation.)
1011
- Fixed sourcebuild on windows by syncing patches with pdfium-binaries.
1112
- Updated test expectations: due to changes in pdfium, some numbers are now slightly different.

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
import sys
99
from pathlib import Path
1010
import setuptools
11-
from wheel.bdist_wheel import bdist_wheel
11+
try:
12+
from setuptools.command.bdist_wheel import bdist_wheel
13+
except ImportError:
14+
from wheel.bdist_wheel import bdist_wheel
1215
from setuptools.command.build_py import build_py as build_py_orig
1316

1417
sys.path.insert(0, str(Path(__file__).parent / "setupsrc"))

0 commit comments

Comments
 (0)