Skip to content

Commit

Permalink
Adjust Makefile for python-sdk-api for the purpose of supporting both…
Browse files Browse the repository at this point in the history
… python2 and python3

- SDK team won't migrate examples to python3 for now but the examples are widely used in SONiC.
  This means we can not phase out python2 until all the examples have been migrated to python3.
- As a result, we need to compile SDK with both python2 and python3 support.

Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Jun 10, 2021
1 parent a3d90b9 commit e8c86c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/mellanox/sdk-src/python-sdk-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
./autogen.sh
fi

debuild -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)
debuild -e PYTHON_INTERPRETERS="\"python2 python3\"" -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)

popd

Expand Down

0 comments on commit e8c86c2

Please sign in to comment.