summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-01-25 17:01:16 -0500
committerDaniil Baturin <daniil@baturin.org>2017-01-25 17:01:16 -0500
commitea48b7bd747df4ae5c8ee64c72cdc67e31ddcd5a (patch)
tree629c314afb8af9df59c106553b5296d21cf0aa1d /scripts
parentb7cbda3bffcc45c329759907f9665375df90d161 (diff)
downloadvyos-build-ea48b7bd747df4ae5c8ee64c72cdc67e31ddcd5a.tar.gz
vyos-build-ea48b7bd747df4ae5c8ee64c72cdc67e31ddcd5a.zip
Switch all build scripts to python3.
Since we only support jessie as build host, and jessie knowingly does have python3 (although not by default), we don't really need to worry about being both 2 and 3 compatible.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-config3
-rwxr-xr-xscripts/check-build-env4
-rwxr-xr-xscripts/check-config2
-rwxr-xr-xscripts/check-vm-build-env2
-rwxr-xr-xscripts/live-build-config2
-rwxr-xr-xscripts/make-version-file4
-rwxr-xr-xscripts/pbuilder-setup3
-rwxr-xr-xscripts/query-json5
8 files changed, 13 insertions, 12 deletions
diff --git a/scripts/build-config b/scripts/build-config
index d273717..9ea92e1 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -1,4 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
+#
# Copyright (C) 2015 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
diff --git a/scripts/check-build-env b/scripts/check-build-env
index 6dcf885..7f02c02 100755
--- a/scripts/check-build-env
+++ b/scripts/check-build-env
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2015 VyOS maintainers and contributors
#
@@ -32,7 +32,7 @@ deps = {
'live-build',
'pbuilder',
'devscripts',
- 'python-pystache'
+ 'python3-pystache'
],
'binaries': []
}
diff --git a/scripts/check-config b/scripts/check-config
index 55d5467..d223661 100755
--- a/scripts/check-config
+++ b/scripts/check-config
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2015 VyOS maintainers and contributors
#
diff --git a/scripts/check-vm-build-env b/scripts/check-vm-build-env
index c32f2b1..8efab84 100755
--- a/scripts/check-vm-build-env
+++ b/scripts/check-vm-build-env
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2016 VyOS maintainers and contributors
#
diff --git a/scripts/live-build-config b/scripts/live-build-config
index cb9e84d..2e2d470 100755
--- a/scripts/live-build-config
+++ b/scripts/live-build-config
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2015 VyOS maintainers and contributors
#
diff --git a/scripts/make-version-file b/scripts/make-version-file
index 6c59709..3bb3331 100755
--- a/scripts/make-version-file
+++ b/scripts/make-version-file
@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/python3
+#
# Copyright (C) 2016 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
@@ -19,7 +20,6 @@
# that is included in the image and used by 'show version' command
# and install/upgrade scripts.
-from __future__ import print_function
import os
import datetime
import json
diff --git a/scripts/pbuilder-setup b/scripts/pbuilder-setup
index fbd49a4..a89348b 100755
--- a/scripts/pbuilder-setup
+++ b/scripts/pbuilder-setup
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2015 VyOS maintainers and contributors
#
@@ -50,4 +50,3 @@ result = os.system(pbuilder_create_command)
if result > 0:
print("pbuilder environment bootstrap failed")
sys.exit(1)
-
diff --git a/scripts/query-json b/scripts/query-json
index 23e64ef..2f1ea32 100755
--- a/scripts/query-json
+++ b/scripts/query-json
@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/python3
+#
# Copyright (C) 2016 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
@@ -14,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: query-config
-# Purpose: Extracts field values a flat JSON file,
+# Purpose: Extracts field values from a flat JSON file,
# for use in languages that can't handle JSON easily,
# (I'm looking at you, Bourne shell!)