mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
eb103c15df
commit
3dbf3b057a
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -49,7 +49,6 @@ jobs:
|
||||
COMPAT: ${{ matrix.COMPAT }}
|
||||
PYTEST_PAR: ${{ matrix.PYTEST_PAR }}
|
||||
PYTEST_OPTS: ${{ matrix.PYTEST_OPTS }}
|
||||
NO_PYTHON: ${{ matrix.NO_PYTHON }}
|
||||
COPTFLAGS: ${{ matrix.COPTFLAGS }}
|
||||
NETWORK: ${{ matrix.NETWORK }}
|
||||
TEST_CMD: ${{ matrix.TEST_CMD }}
|
||||
|
8
Makefile
8
Makefile
@ -298,22 +298,22 @@ endif
|
||||
|
||||
# generate-wire.py --page [header|impl] hdrfilename wirename < csv > file
|
||||
%_wiregen.h: %_wire.csv $(WIRE_GEN_DEPS)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"wiregen $@",tools/generate-wire.py --page header $($@_args) $@ `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
|
||||
fi
|
||||
|
||||
%_wiregen.c: %_wire.csv $(WIRE_GEN_DEPS)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"wiregen $@",tools/generate-wire.py --page impl $($@_args) ${@:.c=.h} `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
|
||||
fi
|
||||
|
||||
%_printgen.h: %_wire.csv $(WIRE_GEN_DEPS)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"printgen $@",tools/generate-wire.py -s -P --page header $($@_args) $@ `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
|
||||
fi
|
||||
|
||||
%_printgen.c: %_wire.csv $(WIRE_GEN_DEPS)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"printgen $@",tools/generate-wire.py -s -P --page impl $($@_args) ${@:.c=.h} `basename $< .csv | sed 's/_exp_/_/'` < $< > $@ && $(call SHA256STAMP,//,)); \
|
||||
fi
|
||||
|
||||
|
@ -241,10 +241,7 @@ TEST_CHECK_DBSTMTS=[0|1] - When running blackbox tests, this will
|
||||
Note: Only SQLite3.
|
||||
TEST_DB_PROVIDER=[sqlite3|postgres] - Selects the database to use when running
|
||||
blackbox tests.
|
||||
NO_PYTHON=[0|1] - Disables the usage of python when using
|
||||
`make`. Useful to discover if regeneration
|
||||
of e.g. `wallet/db_sqlite3_sqlgen.c` would
|
||||
be required to build the source correctly.
|
||||
EXPERIMENTAL_DUAL_FUND=[0|1] - Enable dual-funding tests.
|
||||
```
|
||||
|
||||
Making BOLT Modifications
|
||||
|
@ -37,12 +37,12 @@ SQL_FILES := \
|
||||
wallet/test/run-wallet.c \
|
||||
|
||||
wallet/statements_gettextgen.po: $(SQL_FILES) $(FORCE)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"xgettext $@",xgettext -kNAMED_SQL -kSQL --add-location --no-wrap --omit-header -o $@ $(SQL_FILES) && $(call SHA256STAMP,# ,)); \
|
||||
fi
|
||||
|
||||
wallet/db_%_sqlgen.c: wallet/statements_gettextgen.po devtools/sql-rewrite.py $(FORCE)
|
||||
@if $(call SHA256STAMP_CHANGED); then if [ "$$NO_PYTHON" = 1 ]; then echo "Error: NO_PYTHON on $@"; exit 1; fi; \
|
||||
@if $(call SHA256STAMP_CHANGED); then \
|
||||
$(call VERBOSE,"sql-rewrite $@",devtools/sql-rewrite.py wallet/statements_gettextgen.po $* > $@ && $(call SHA256STAMP,//,)); \
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user