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 1, 2023
1 parent 37f64db commit d3c8d2a
Showing 1 changed file with 1 addition and 5 deletions.
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 d3c8d2a

Please sign in to comment.