Skip to content

Commit 244fe1d

Browse files
committed
Add python include directory to preprocessor includes
1 parent ef73f33 commit 244fe1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

robotpy_build/wrapper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pathlib
1818
import posixpath
1919
import shutil
20+
import sysconfig
2021
import toposort
2122
from typing import Any, Dict, List, Optional, Set, Tuple
2223

@@ -605,7 +606,7 @@ def on_build_gen(
605606

606607
hppoutdir = join(self.rpy_incdir, "rpygen")
607608

608-
pp_includes = self._all_includes(False)
609+
pp_includes = self._all_includes(True) + [sysconfig.get_path("include")]
609610

610611
# TODO: only regenerate files if the generated files
611612
# have changed

0 commit comments

Comments
 (0)