summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-05 20:57:13 +0000
committermidipix <writeonce@midipix.org>2019-10-05 20:59:56 +0000
commit83a88fa0c0ffa69f1501bf98e3b6a94d47f4049c (patch)
tree50d2fdfa004668fd7cd5104d7d3a6ab70802efbf
parent19665f8afca591006af4e303825ef91825e4b8cd (diff)
downloadsbpython2-83a88fa0c0ffa69f1501bf98e3b6a94d47f4049c.tar.bz2
sbpython2-83a88fa0c0ffa69f1501bf98e3b6a94d47f4049c.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 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) \