Skip to content

Commit 340012d

Browse files
committed
build: add temporary fix for "bad magic number" error in out-of-tree builds
This was caused by an pyc files hanging around from previous python2 invocations, when the matching .py missing from that path. This should not be a problem with python3's tagged caches.
1 parent 142ffc7 commit 340012d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.py qa/rpc-
224224

225225
CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
226226

227+
# This file is problematic for out-of-tree builds if it exists.
228+
DISTCLEANFILES = qa/pull-tester/tests_config.pyc
229+
227230
.INTERMEDIATE: $(COVERAGE_INFO)
228231

229232
clean-local:

src/Makefile.test.include

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
123123

124124
CLEANFILES += $(CLEAN_BITCOIN_TEST)
125125

126+
# This file is problematic for out-of-tree builds if it exists.
127+
DISTCLEANFILES += test/buildenv.pyc
128+
126129
bitcoin_test: $(TEST_BINARY)
127130

128131
bitcoin_test_check: $(TEST_BINARY) FORCE

0 commit comments

Comments
 (0)