File tree 3 files changed +18
-8
lines changed 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,14 @@ jobs:
74
74
grep "aclocal 1.16.3" aclocal.m4
75
75
grep -q "runstatedir" configure
76
76
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
77
- - name : Regenerate autoconf files
78
- run : docker run --rm -v $(pwd):/src quay.io/tiran/cpython_autoconf:269
79
- - name : Build CPython
77
+ - name : Configure CPython
80
78
run : |
81
79
# Build Python with the libpython dynamic library
82
80
./configure --with-pydebug --enable-shared
81
+ - name : Regenerate autoconf files with container image
82
+ run : make regen-configure
83
+ - name : Build CPython
84
+ run : |
83
85
make -j4 regen-all
84
86
make regen-stdlib-module-names
85
87
- name : Check for changes
Original file line number Diff line number Diff line change @@ -1196,7 +1196,7 @@ regen-all: regen-opcode regen-opcode-targets regen-typeslots \
1196
1196
regen-pegen-metaparser regen-pegen regen-test-frozenmain \
1197
1197
regen-global-objects
1198
1198
@echo
1199
- @echo "Note: make regen-stdlib-module-names and make autoconf should be run manually"
1199
+ @echo "Note: make regen-stdlib-module-names and make regen-configure should be run manually"
1200
1200
1201
1201
############################################################################
1202
1202
# Special rules for object files
@@ -2294,10 +2294,16 @@ recheck:
2294
2294
# Regenerate configure and pyconfig.h.in
2295
2295
.PHONY: autoconf
2296
2296
autoconf:
2297
- # Regenerate the configure script from configure.ac using autoconf
2298
- (cd $(srcdir); autoconf -Wall)
2299
- # Regenerate pyconfig.h.in from configure.ac using autoheader
2300
- (cd $(srcdir); autoheader -Wall)
2297
+ (cd $(srcdir); autoreconf -ivf -Werror)
2298
+
2299
+ .PHONY: regen-configure
2300
+ regen-configure:
2301
+ @if command -v podman >/dev/null; then RUNTIME="podman"; else RUNTIME="docker"; fi; \
2302
+ if ! command -v $$RUNTIME; then echo "$@ needs either Podman or Docker container runtime." >&2; exit 1; fi; \
2303
+ if command -v selinuxenabled >/dev/null && selinuxenabled; then OPT=":Z"; fi; \
2304
+ CMD="$$RUNTIME run --rm --pull=always -v $(abs_srcdir):/src$$OPT quay.io/tiran/cpython_autoconf:269"; \
2305
+ echo $$CMD; \
2306
+ $$CMD || exit $?
2301
2307
2302
2308
# Create a tags file for vi
2303
2309
tags::
Original file line number Diff line number Diff line change
1
+ Add ``regen-configure `` make target to regenerate configure script with
2
+ Christian's container image ``quay.io/tiran/cpython_autoconf:269 ``.
You can’t perform that action at this time.
0 commit comments