GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add 'regen-configure' make target · python/cpython@819c445

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • build.yml
  • Makefile.pre.in
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
grep -q "runstatedir" configure
9595
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
9696
- name: Regenerate autoconf files
97-
run: docker run --rm -v $(pwd):/src quay.io/tiran/cpython_autoconf:269
97+
run: make regen-configure
9898
- name: Build CPython
9999
run: |
100100
./configure --with-pydebug
Collapse file

‎Makefile.pre.in‎

Copy file name to clipboardExpand all lines: Makefile.pre.in
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,18 @@ autoconf:
18151815
# Regenerate pyconfig.h.in from configure.ac using autoheader
18161816
(cd $(srcdir); autoheader -Wall)
18171817

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+
18181830
# Create a tags file for vi
18191831
tags::
18201832
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.