From 83a88fa0c0ffa69f1501bf98e3b6a94d47f4049c Mon Sep 17 00:00:00 2001 From: midipix Date: Oct 05 2019 20:59:56 +0000 Subject: pydist, pycompile: _sysconfigdata.py: provide the 'VERSION' variable. --- diff --git a/project/pycgen.mk b/project/pycgen.mk index 25c197c..faf67aa 100644 --- a/project/pycgen.mk +++ b/project/pycgen.mk @@ -11,10 +11,12 @@ PYCGEN_PYENCS = $(PYDIST_ENCODINGS_SRCS:$(PYDIST_ENCDIR)/%.py=$(PYCGEN_ENCDIR)/% $(PYDIST_PYCDIR)/./_sysconfigdata.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) \