buildsystem: use /usr/bin/python3 in scripts

This commit is contained in:
MilhouseVH 2019-11-07 09:20:34 +00:00
parent cfe1640715
commit 6eb226b1fb
7 changed files with 27 additions and 22 deletions

View File

@ -432,10 +432,10 @@ endian = 'little'
[properties]
root = '$TOOLCHAIN'
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
$(python -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('CXXFLAGS').split()]))")
$(python -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
$(python3 -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
$(python3 -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
$(python3 -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('CXXFLAGS').split()]))")
$(python3 -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
${!properties}
EOF
}
@ -462,10 +462,10 @@ endian = 'little'
[properties]
root = '$SYSROOT_PREFIX/usr'
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('TARGET_CFLAGS').split()]))")
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('TARGET_LDFLAGS').split()]))")
$(python -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('TARGET_CXXFLAGS').split()]))")
$(python -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('TARGET_LDFLAGS').split()]))")
$(python3 -c "import os; print('c_args = {}'.format([x for x in os.getenv('TARGET_CFLAGS').split()]))")
$(python3 -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('TARGET_LDFLAGS').split()]))")
$(python3 -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('TARGET_CXXFLAGS').split()]))")
$(python3 -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('TARGET_LDFLAGS').split()]))")
${!properties}
EOF
}

View File

@ -1,15 +1,18 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv
from __future__ import print_function
import re
import os
import requests
import sys
try:
from lxml import html
except:
print('lxml module not installed.\n\nOn Ubuntu, use "sudo apt install python3-lxml"')
sys.exit(1)
category = {
1: 'Nvidia Geforce GPUs',

View File

@ -1,8 +1,13 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import os, sys
import requests
try:
from lxml import html
except:
print('lxml module not installed.\n\nOn Ubuntu, use "sudo apt install python3-lxml"')
sys.exit(1)
__cwd__ = os.path.dirname(os.path.realpath(__file__))
__rules__ = __cwd__ + '/../udev.d/96-nvidia.rules'

View File

@ -1,10 +1,9 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
from __future__ import print_function
import sys, os, codecs, json, argparse, re
ROOT_PKG = "__root__"

View File

@ -1,9 +1,8 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
from __future__ import print_function
import sys
# When adding new devices to the list please keep them in alphabetical order

View File

@ -1,10 +1,9 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
from __future__ import print_function
import os
import sys
import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: GPL-2.0