joan2937 / lg

Linux C libraries and Python modules for manipulating GPIO
The Unlicense
57 stars 20 forks source link

Make python version overridable by PYTHON variable #5

Open pemensik opened 3 years ago

pemensik commented 3 years ago

Current version builds both python versions if available. Failures are not fatal. Make it able to choose which version to compile, install only single version. Or no python code installed, if PYTHON= variable is passed.

joan2937 commented 3 years ago

Just a note to say I'm busy doing other things at the moment but will get back to this within a week or so.

ramok commented 1 year ago

I think is good idea to add variable PYTHON3 also

pemensik commented 1 year ago

The idea of PYTHON variable is to use it like PYTHON=python3 or PYTHON=python2. I am not sure what should PYTHON3 variable do.

ramok commented 1 year ago

If PYTHON3 unset - do not build for python3. if setted - build it, by $(PYTHON3) -q setup.py ....

Can be usefull for yocto build. For example for native build python execulable call nativepython and nativepythin3.