Skip to content

erpcgen compilation when both py2 as system default while py3 is present #339

Open
@Diagano

Description

Hi,

We only recently moved to 1.9.1 and see that the default is now to use py3.
In our basic docker env we have both setup and have 2.7 as the default (using update-alternatives)
Its very simple to overcome but more to the fact that out of the box without any change (external or in paths.mk) the erpcgen compilation fails even though python3 is installed and accessible as python3.
I do see that if "python" was not linked use of "python3" is attempted, but not if python linked and is different version the make will fail. Maybe there is a better way at it than the current one in paths.mk?

Maybe even reverse the current from:

PYTHON ?= python
ifeq (, $(shell which $(PYTHON)))
    PYTHON= python3
endif

to:

PYTHON ?= python3
ifeq (, $(shell which $(PYTHON)))
    PYTHON= python
endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions