@@ -695,17 +695,12 @@ def check(self):
695
695
return self ._check_for_pkg_config (
696
696
'PyCXX' , 'CXX/Extensions.hxx' , min_version = '6.2.4' )
697
697
except CheckFailed as e :
698
- # Since there is no .pc file for PyCXX upstream, many
699
- # distros don't package it either. We don't necessarily
700
- # need to fall back to a local build in that scenario if
701
- # the header files can be found.
702
- base_include_dirs = [
703
- os .path .join (x , 'include' ) for x in get_base_dirs ()]
704
- if has_include_file (base_include_dirs , 'CXX/Extensions.hxx' ):
705
- return 'Using system CXX (version unknown, no pkg-config info)'
706
- else :
707
- self .__class__ .found_external = False
708
- return str (e ) + ' Using local copy.'
698
+ # It's ok to just proceed here, since the `import CXX`
699
+ # worked above, and PyCXX (at least upstream) ensures that
700
+ # its header files are on the default distutils include
701
+ # path (either in a standard C place such as /usr/include,
702
+ # or in /usr/include/pythonX.Y.
703
+ return 'Using system CXX (version unknown, no pkg-config info)'
709
704
710
705
def add_flags (self , ext ):
711
706
if self .found_external and not 'sdist' in sys .argv :
0 commit comments