Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# @{
##

print 'Hello World!'
print('Hello World!')


##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
##

a = 9.01e+21 - 9.01e+21 + 0.01
print 'the value of a is %s' % a
print('the value of a is %s' % a)

##
# @}
Expand Down
13 changes: 13 additions & 0 deletions meta-refkit-core/recipes-devtools/python/python3_%.bbappend
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
require refkit-python.inc

# This is a temporary solution until OE-core upstream supports alternatives for python
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'refkit-config', 'update-alternatives', '', d)}
ALTERNATIVE_PRIORITY_refkit-config = "80"
ALTERNATIVE_${PN}-core_refkit-config = "python python_config"

python () {
if bb.utils.contains('DISTRO_FEATURES', 'refkit-config', True, False, d):
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python', d.getVar('bindir') + '/python')
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python_config', d.getVar('bindir') + '/python-config')
d.setVarFlag('ALTERNATIVE_TARGET', 'python', d.getVar('bindir') + '/python3')
d.setVarFlag('ALTERNATIVE_TARGET', 'python_config', d.getVar('bindir') + '/python3-config')
}
11 changes: 11 additions & 0 deletions meta-refkit-core/recipes-devtools/python/python_%.bbappend
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
require refkit-python.inc

# This is a temporary solution until OE-core upstream supports alternatives for python
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'refkit-config', 'update-alternatives', '', d)}
ALTERNATIVE_PRIORITY_refkit-config = "100"
ALTERNATIVE_${PN}-core_refkit-config = "python python_config"

python () {
if bb.utils.contains('DISTRO_FEATURES', 'refkit-config', True, False, d):
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python', d.getVar('bindir') + '/python')
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python_config', d.getVar('bindir') + '/python-config')
}
2 changes: 1 addition & 1 deletion meta-refkit-core/recipes-sensors/mraa/mraa_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http"

S = "${WORKDIR}/git"

inherit cmake distutils-base
inherit cmake distutils3-base

DEPENDS += "json-c"

Expand Down
2 changes: 1 addition & 1 deletion meta-refkit-core/recipes-sensors/upm/upm_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http"

S = "${WORKDIR}/git"

inherit distutils-base cmake
inherit distutils3-base cmake


# override this in local.conf to get needed bindings.
Expand Down
6 changes: 0 additions & 6 deletions meta-refkit/conf/distro/include/refkit-supported-recipes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ linux-yocto-rt@core
linux-yocto@core
lms8@intel
log4cxx@ros-layer
lowpan-tools@networking-layer
lttng-ust@core
lvm2@openembedded-layer
m4@core
Expand Down Expand Up @@ -342,11 +341,6 @@ procps@core
protobuf@openembedded-layer
ptest-runner@core
pulseaudio@core
python-dbus@core
python-nose@core
python-numpy@core
python-pygobject@core
python-setuptools@core
python3-catkin-pkg@ros-layer
python3-dbus@core
python3-lxml@meta-python
Expand Down