summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-09 22:11:58 (GMT)
committerGitHub <noreply@github.com>2021-04-09 22:11:58 (GMT)
commit291d38d6e92ff6a665ea9b095f9d816ae42a1249 (patch)
tree4e861af12dd9bc0fbe71c32f8d696495fdadbbc6
parenteed7686e9fe22a3eb5e1a1fc7d27c27fca070bd1 (diff)
downloadcpython-291d38d6e92ff6a665ea9b095f9d816ae42a1249.zip
cpython-291d38d6e92ff6a665ea9b095f9d816ae42a1249.tar.gz
cpython-291d38d6e92ff6a665ea9b095f9d816ae42a1249.tar.bz2
Add ignore file for the abidump check (GH-25322)
-rw-r--r--Doc/data/python3.8.abi.ignorefile8
-rw-r--r--Makefile.pre.in4
2 files changed, 11 insertions, 1 deletions
diff --git a/Doc/data/python3.8.abi.ignorefile b/Doc/data/python3.8.abi.ignorefile
new file mode 100644
index 0000000..a9c89f0
--- /dev/null
+++ b/Doc/data/python3.8.abi.ignorefile
@@ -0,0 +1,8 @@
+[suppress_type]
+name_regexp = _Py.*
+
+[suppress_variable]
+name_regexp = _Py.*
+
+[suppress_function]
+name_regexp = _Py.*
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3028078..c328d35 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -731,7 +731,9 @@ regen-abidump: all
@$(UPDATE_FILE) $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new
check-abidump: all
- abidiff "libpython$(LDVERSION).so" $(srcdir)/Doc/data/python$(LDVERSION).abi --drop-private-types --no-architecture --no-added-syms
+ abidiff "libpython$(LDVERSION).so" $(srcdir)/Doc/data/python$(LDVERSION).abi --drop-private-types \
+ --suppressions $(srcdir)/Doc/data/python$(LDVERSION).abi.ignorefile \
+ --no-architecture --no-added-syms
############################################################################
# Regenerate all generated files