From 8399f9055b989a5051ccd11dbd2597f1e0532b08 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Oct 2019 23:41:49 +0000 Subject: pydist, pycompile: _sysconfigdata.py: provide the 'VERSION' variable. --- project/pycgen.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'project') diff --git a/project/pycgen.mk b/project/pycgen.mk index 1cb36f1..0c15bf9 100644 --- a/project/pycgen.mk +++ b/project/pycgen.mk @@ -20,10 +20,12 @@ PYCGEN_PYURLS = $(PYDIST_URLLIB_SRCS:$(PYDIST_URLDIR)/%.py=$(PYCGEN_URLDIR)/%.py $(PYDIST_PYCDIR)/./_sysconfigdata_$(PYTHON_ABIFL)_$(PYTHON_PLATFORM)_.py: mkdir -p $(PYDIST_PYCDIR) - printf 'build_time_vars = {}\n' > $@ + printf 'build_time_vars = {\n\t%s: %s\n}\n' \ + "'VERSION'" "'"$(PYTHON_MAJOR).$(PYTHON_MINOR)"'" > $@ $(PYCGEN_CFGDAT): $(PYCOMPILE_DIR)/tree.tag - printf 'build_time_vars = {}\n' > $@ + printf 'build_time_vars = {\n\t%s: %s\n}\n' \ + "'VERSION'" "'"$(PYTHON_MAJOR).$(PYTHON_MINOR)"'" > $@ $(PYCOMPILE_DIR)/$(PYDIST_PYCDIR)/./%.py: $(SOURCE_DIR)/Lib/%.py $(PYCOMPILE_DIR)/tree.tag PYCOPY_PYTHON=$(PYCOMPILE) \ -- cgit v1.2.3