Skip to content

Commit e85ebb2

Browse files
committed
Remove fragile build_ext command run order check.
1 parent d305a61 commit e85ebb2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ next
33

44
- Bumped dependencies to Python≥3.8.
55
- Fixed support for macos backend on Matplotlib≥3.6.
6+
- Fixed compatibility with wheel≥0.41.
67
- Support pdf MaxVersion up to 1.7 (if the underlying cairo supports it).
78
- `set_options` can now be used as a context manager.
89

setup.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ def paths_from_link_libpaths():
6464
class build_ext(build_ext):
6565

6666
def finalize_options(self):
67-
if not self.distribution.have_run.get("egg_info", 1):
68-
# Just listing the MANIFEST; setup_requires are not available yet.
69-
super().finalize_options()
70-
return
71-
7267
import cairo
7368
from pybind11.setup_helpers import Pybind11Extension
7469

@@ -169,6 +164,7 @@ def copy_extensions_to_source(self):
169164
ext_modules=[Extension("", [])],
170165
python_requires=">=3.8",
171166
setup_requires=[
167+
"setuptools>=36.7", # setup_requires early install.
172168
"setuptools_scm",
173169
"pybind11>=2.8.0",
174170
*(["pycairo>=1.16.0; os_name == 'posix'"] if not MANYLINUX else []),

0 commit comments

Comments
 (0)