Skip to content

Commit fbbf6aa

Browse files
committed
platform: nokia-7215-t1 - generate python3 sonic_platform wheel
1 parent e97135f commit fbbf6aa

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

platform/marvell-armhf/sonic-platform-nokia/debian/rules

+7-11
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
include /usr/share/dpkg/pkg-info.mk
77
#--------------------------------------------------------
88

9-
PYTHON ?= python2
10-
119
PACKAGE_PRE_NAME := sonic-platform-nokia
1210
MOD_SRC_DIR:= $(shell pwd)
1311
MODULE_DIRS:= 7215
@@ -25,21 +23,16 @@ clean:
2523

2624
build:
2725
(for mod in $(MODULE_DIRS); do \
28-
$(PYTHON) $${mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR)/$${mod}; \
26+
python2 $${mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR)/$${mod}; \
27+
python3 $${mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR)/$${mod}; \
2928
done)
3029

3130
binary: binary-arch binary-indep
3231
# Nothing to do
3332

34-
binary-arch:
33+
binary-arch:
3534
# Nothing to do
3635

37-
#install: build
38-
#dh_testdir
39-
#dh_testroot
40-
#dh_clean -k
41-
#dh_installdirs
42-
4336
binary-indep:
4437
dh_testdir
4538
dh_installdirs
@@ -49,8 +42,10 @@ binary-indep:
4942
dh_installdirs -p$(PACKAGE_PRE_NAME)-$${mod} /usr/local/bin; \
5043
cp $(MOD_SRC_DIR)/$${mod}/$(SERVICE_DIR)/*.service debian/$(PACKAGE_PRE_NAME)-$${mod}/lib/systemd/system/; \
5144
cp $(MOD_SRC_DIR)/$${mod}/$(UTILS_DIR)/* debian/$(PACKAGE_PRE_NAME)-$${mod}/usr/local/bin/; \
52-
$(PYTHON) $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
45+
python2 $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
46+
python3 $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
5347
done)
48+
5449
# Resuming debhelper scripts
5550
dh_testroot
5651
dh_install
@@ -67,4 +62,5 @@ binary-indep:
6762
dh_gencontrol
6863
dh_md5sums
6964
dh_builddeb
65+
7066
.PHONY: build binary binary-arch binary-indep clean

platform/marvell-armhf/sonic-platform-nokia/debian/sonic-platform-nokia-7215.install

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ nokia-7215_plt_setup.sh usr/sbin
22
7215/scripts/nokia-7215init.sh usr/local/bin
33
7215/service/nokia-7215init.service etc/systemd/system
44
7215/sonic_platform-1.0-py2-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0
5+
7215/sonic_platform-1.0-py3-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0

0 commit comments

Comments
 (0)