This repository was archived by the owner on Jul 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ dependencies:
17
17
- pip install -U pip
18
18
- pip install -U ipdb
19
19
- pip install -U tox
20
- - pip install -U .
21
- - pyenv local $TOX_PY35 $TOX_PY34 $TOX_PY33 $TOX_PY32 $TOX_PY27 $TOX_PY26 $TOX_PYPY
20
+ - pip install -U -e .
22
21
23
22
test :
24
23
override :
Original file line number Diff line number Diff line change @@ -85,6 +85,26 @@ def tox_get_python_executable(envconfig):
85
85
if pipe .poll () == 0 :
86
86
return out .strip ()
87
87
else :
88
+ # ####################
89
+ known_versions = subprocess .check_output (
90
+ [pyenv , 'versions' ],
91
+ universal_newlines = True
92
+ ).split (os .linesep )
93
+ known_versions = [v .strip () for v in known_versions if v .strip ()]
94
+ import ntpath
95
+ desired_version = ntpath .basename (envconfig .basepython )
96
+ # or
97
+ desired_version = '.' .join (
98
+ [str (_v )
99
+ for _v in envconfig .python_info .version_info [0 :3 ]]
100
+ )
101
+ # do shit with desired version
102
+ if desired_version in known_versions :
103
+ pass
104
+ # pyenv install desired_versions
105
+
106
+ # ####################
107
+
88
108
if not envconfig .tox_pyenv_fallback :
89
109
raise PyenvWhichFailed (err )
90
110
LOG .debug ("`%s` failed thru tox-pyenv plugin, falling back. "
You can’t perform that action at this time.
0 commit comments