David-OConnor/pyflow

Python version selection on Mac?

TyceHerrman opened this issue · 1 comments

I'm a little fuzzy on how pyflow is getting python versions, which is maybe the real root of my question, but in trying to create a new pyflow project (pyflow new projname), specifying a python version when prompted doesn't seem to work as expected. pyflow new projname prompts selection of a python version for project and reports the default as [3.9.6]. Entering a different version (I've tried 3.9.5 and 3.9.8) results in a new pyflow project being created, but when I check the python version in the project folder with python --version, the result is always 3.9.6. At this point, the .toml file also always has py_version = "3.9". After creating the new pyflow project following the steps above, if I try pyflow switch for the first time in the project, I get the following:

Switched to Python version 3.9.5 
Found multiple compatible Python versions. Please enter the number associated with the one you'd like to use:
1: python3.9: 3.9.6
2: python3: 3.9.6
3: python: 3.9.6

After selecting any option, the .toml file updates to py_version="3.9.5" and python --version continues to return 3.9.6.

I see in the issues and readme there's some issues with using pyflow on Macs - not sure if my issue is a specific Mac problem, a more general problem, or simply a misunderstanding of how pyflow Python version selection works.

This sounds like a bug. The mac compatibility problems are mainly due to not having a good way to install it, since you need a mac AFAIK to build it. I'm curious if this problem manifests only on mac, or more broadly.