Skip to content

Commit 4480d08

Browse files
committed
iAdd Ubuntu include path for splint
1 parent d063f85 commit 4480d08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-c-ext-sanity-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ jobs:
8787
- name: Lint with splint
8888
run: |
8989
# NOTE: we only run splint error check for changed c files to limit noise
90+
# NOTE: point splint to Ubuntu's custom /usr/include/python3.x for Python.h
9091
echo "Lint changed code files: $(git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$')"
91-
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib -D__gnuc_va_list=va_list
92+
git diff --diff-filter=ACMRTB --name-only HEAD^1 -- | grep -E '\.(c|h)$' | xargs -r splint +posixlib -D__gnuc_va_list=va_list $(python3-config --includes)
9293
9394
lint-python3-rocky9:
9495
name: Sanity check c-extension module code in default python3 on Rocky9

0 commit comments

Comments
 (0)