Skip to content

Commit 3dbf3b0

Browse files
rustyrussellcdecker
authored andcommitted
Makefile: remove NO_PYTHON flag in anticipation of making it compulsory.
And note the EXPERIMENTAL_DUAL_FUND env var in HACKING.md. Signed-off-by: Rusty Russell <[email protected]>
1 parent eb103c1 commit 3dbf3b0

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.github/workflows/ci.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
COMPAT: ${{ matrix.COMPAT }}
5050
PYTEST_PAR: ${{ matrix.PYTEST_PAR }}
5151
PYTEST_OPTS: ${{ matrix.PYTEST_OPTS }}
52-
NO_PYTHON: ${{ matrix.NO_PYTHON }}
5352
COPTFLAGS: ${{ matrix.COPTFLAGS }}
5453
NETWORK: ${{ matrix.NETWORK }}
5554
TEST_CMD: ${{ matrix.TEST_CMD }}

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ endif
298298

299299
# generate-wire.py --page [header|impl] hdrfilename wirename < csv > file
300300
%_wiregen.h: %_wire.csv $(WIRE_GEN_DEPS)
301-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
301+
@if $(call SHA256STAMP_CHANGED); then \
302302
$(call VERBOSE,"wiregen $@",tools/generate-wire.py --page header $($@_args) $@ `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
303303
fi
304304

305305
%_wiregen.c: %_wire.csv $(WIRE_GEN_DEPS)
306-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
306+
@if $(call SHA256STAMP_CHANGED); then \
307307
$(call VERBOSE,"wiregen $@",tools/generate-wire.py --page impl $($@_args) ${@:.c=.h} `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
308308
fi
309309

310310
%_printgen.h: %_wire.csv $(WIRE_GEN_DEPS)
311-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
311+
@if $(call SHA256STAMP_CHANGED); then \
312312
$(call VERBOSE,"printgen $@",tools/generate-wire.py -s -P --page header $($@_args) $@ `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
313313
fi
314314

315315
%_printgen.c: %_wire.csv $(WIRE_GEN_DEPS)
316-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
316+
@if $(call SHA256STAMP_CHANGED); then \
317317
$(call VERBOSE,"printgen $@",tools/generate-wire.py -s -P --page impl $($@_args) ${@:.c=.h} `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
318318
fi
319319

doc/HACKING.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,7 @@ TEST_CHECK_DBSTMTS=[0|1] - When running blackbox tests, this will
241241
Note: Only SQLite3.
242242
TEST_DB_PROVIDER=[sqlite3|postgres] - Selects the database to use when running
243243
blackbox tests.
244-
NO_PYTHON=[0|1] - Disables the usage of python when using
245-
`make`. Useful to discover if regeneration
246-
of e.g. `wallet/db_sqlite3_sqlgen.c` would
247-
be required to build the source correctly.
244+
EXPERIMENTAL_DUAL_FUND=[0|1] - Enable dual-funding tests.
248245
```
249246

250247
Making BOLT Modifications

wallet/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ SQL_FILES := \
3737
wallet/test/run-wallet.c \
3838

3939
wallet/statements_gettextgen.po: $(SQL_FILES) $(FORCE)
40-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
40+
@if $(call SHA256STAMP_CHANGED); then \
4141
$(call VERBOSE,"xgettext $@",xgettext -kNAMED_SQL -kSQL --add-location --no-wrap --omit-header -o $@ $(SQL_FILES) && $(call SHA256STAMP,# ,)); \
4242
fi
4343

4444
wallet/db_%_sqlgen.c: wallet/statements_gettextgen.po devtools/sql-rewrite.py $(FORCE)
45-
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
45+
@if $(call SHA256STAMP_CHANGED); then \
4646
$(call VERBOSE,"sql-rewrite $@",devtools/sql-rewrite.py wallet/statements_gettextgen.po $* > $@ && $(call SHA256STAMP,//,)); \
4747
fi
4848

0 commit comments

Comments
 (0)