Skip to content

Commit 8e6ecca

Browse files
authoredJun 23, 2022
Add ABI dump script (#94135)
1 parent 28a2ccf commit 8e6ecca

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
 

‎.github/workflows/regen-abidump.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -ex
2+
3+
export DEBIAN_FRONTEND=noninteractive
4+
./.github/workflows/posix-deps-apt.sh
5+
apt-get install -yq abigail-tools python3
6+
export CFLAGS="-g3 -O0"
7+
./configure --enable-shared && make
8+
make regen-abidump

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,6 @@ Python/frozen_modules/MANIFEST
150150
# Ignore ./python binary on Unix but still look into ./Python/ directory.
151151
/python
152152
!/Python/
153+
154+
# main branch only: ABI files are not checked/maintained
155+
Doc/data/python*.abi

‎Makefile.pre.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
12041204
regen-abidump: all
12051205
@$(MKDIR_P) $(srcdir)/Doc/data/
12061206
abidw "libpython$(LDVERSION).so" --no-architecture --out-file $(srcdir)/Doc/data/python$(LDVERSION).abi.new
1207-
@$(UPDATE_FILE) $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new
1207+
@$(UPDATE_FILE) --create $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new
12081208

12091209
check-abidump: all
12101210
abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms

0 commit comments

Comments
 (0)
Please sign in to comment.