Skip to content

Commit

Permalink
Remove fragile build_ext command run order check.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Sep 17, 2023
1 parent 37f64db commit bfe2bfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ next
====

- Bumped dependencies to Python≥3.8.
- Fixed compatibility with wheel≥0.41.
- Support pdf MaxVersion up to 1.7 (if the underlying cairo supports it).
- `set_options` can now be used as a context manager.

Expand Down
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ def paths_from_link_libpaths():
class build_ext(build_ext):

def finalize_options(self):
if not self.distribution.have_run.get("egg_info", 1):
# Just listing the MANIFEST; setup_requires are not available yet.
super().finalize_options()
return

import cairo
from pybind11.setup_helpers import Pybind11Extension

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

0 comments on commit bfe2bfc

Please sign in to comment.