summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-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) \