summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-05 23:41:49 +0000
committermidipix <writeonce@midipix.org>2019-10-05 23:59:56 +0000
commit8399f9055b989a5051ccd11dbd2597f1e0532b08 (patch)
tree55005bd61c733118e949d688fbf9794fa942c7ff
parent2df5f5ff457ad26b70ce7dad3a499f84fc1c494e (diff)
downloadsbpython3-8399f9055b989a5051ccd11dbd2597f1e0532b08.tar.bz2
sbpython3-8399f9055b989a5051ccd11dbd2597f1e0532b08.tar.xz
pydist, pycompile: _sysconfigdata.py: provide the 'VERSION' variable.
-rw-r--r--project/pycgen.mk6
1 files changed, 4 insertions, 2 deletions
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) \