Skip to content

Commit

Permalink
Add extra include dir for PEG tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Dec 12, 2023
1 parent 6c067b7 commit c74133b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/peg_generator/pegen/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def compile_c_extension(
str(MOD_DIR.parent.parent.parent / "Parser" / "lexer"),
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer"),
]
if sys.platform == "win32":
# HACK: The location of pyconfig.h has moved within our build, and
# setuptools hasn't updated for it yet. So add the path manually for now
include_dirs.append(pathlib.Path(sysconfig.get_config_h_filename()).parent)
extension = Extension(
extension_name,
sources=[generated_source_path],
Expand Down

0 comments on commit c74133b

Please sign in to comment.