autobuild: We should run autobuild with python3 by default
authorNoel Power <noel.power@suse.com>
Mon, 10 Dec 2018 07:28:31 +0000 (07:28 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:26 +0000 (10:38 +0100)
sn-devel autobuild runing autobuild.py (via git hooks I suppose) but
if run directly (e.g. depending on script shebang) then 'python' aka
python2 will run. This will cause an error when building some targets
because the autobuild script itself sometimes builds paths based
on the version of python executing the script e.g ${PYTHON_PREFIX}.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index 6948ab64bde07db363b82de84ab8a865bb93b8c6..c71b85a85b460c4685b1e8b2a19036f95633d15a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # run tests on all Samba subprojects and push to a git tree on success
 # Copyright Andrew Tridgell 2010
 # released under GNU GPL v3 or later