KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Since python passed to use version 3 as the default there's a need to handle the version2 code execution with the corret python interpreter. I have a small python2 project where I use make to configure and install python package, so here's my question: How can I determine python's version inside Makefile ? Here's the logic I want to use: if (python.version == 3) python2 some_script.py2 else python3 some_script.py3 Thanks in advance!
Tags (comma-separated)
Save Edits
Cancel