File tree 2 files changed +17
-1
lines changed 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 93
93
grep "aclocal 1.16.3" aclocal.m4
94
94
grep -q "runstatedir" configure
95
95
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
96
+ - name : Configure CPython
97
+ run : |
98
+ # Build Python with the libpython dynamic library
99
+ ./configure --config-cache --with-pydebug --enable-shared
96
100
- name : Regenerate autoconf files
97
- run : docker run --rm -v $(pwd):/src quay.io/tiran/cpython_autoconf:269
101
+ run : make regen-configure
98
102
- name : Build CPython
99
103
run : |
100
104
./configure --with-pydebug
Original file line number Diff line number Diff line change @@ -1815,6 +1815,18 @@ autoconf:
1815
1815
# Regenerate pyconfig.h.in from configure.ac using autoheader
1816
1816
(cd $(srcdir); autoheader -Wall)
1817
1817
1818
+ # See https://github.com/tiran/cpython_autoconf container
1819
+ .PHONY: regen-configure
1820
+ regen-configure:
1821
+ @if command -v podman >/dev/null; then RUNTIME="podman"; else RUNTIME="docker"; fi; \
1822
+ if ! command -v $$RUNTIME; then echo "$@ needs either Podman or Docker container runtime." >&2; exit 1; fi; \
1823
+ if command -v selinuxenabled >/dev/null && selinuxenabled; then OPT=":Z"; fi; \
1824
+ # Manifest corresponds with tag '269' \
1825
+ CPYTHON_AUTOCONF_MANIFEST="sha256:f370fee95eefa3d57b00488bce4911635411fa83e2d293ced8cf8a3674ead939" \
1826
+ CMD="$$RUNTIME run --rm --pull=missing -v $(abs_srcdir):/src$$OPT quay.io/tiran/cpython_autoconf@$$CPYTHON_AUTOCONF_MANIFEST"; \
1827
+ echo $$CMD; \
1828
+ $$CMD || exit $?
1829
+
1818
1830
# Create a tags file for vi
1819
1831
tags::
1820
1832
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
You can’t perform that action at this time.
0 commit comments