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 +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-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 @@ -42,6 +42,7 @@ def tox_get_python_executable(envconfig):
42
42
43
43
44
44
import logging
45
+ import os
45
46
import subprocess
46
47
47
48
import py
@@ -85,6 +86,26 @@ def tox_get_python_executable(envconfig):
85
86
if pipe .poll () == 0 :
86
87
return out .strip ()
87
88
else :
89
+ # ####################
90
+ known_versions = subprocess .check_output (
91
+ [pyenv , 'versions' ],
92
+ universal_newlines = True
93
+ ).split (os .linesep )
94
+ known_versions = [v .strip () for v in known_versions if v .strip ()]
95
+ import ntpath
96
+ desired_version = ntpath .basename (envconfig .basepython )
97
+ # or
98
+ desired_version = '.' .join (
99
+ [str (_v )
100
+ for _v in envconfig .python_info .version_info [0 :3 ]]
101
+ )
102
+ # do shit with desired version
103
+ if desired_version in known_versions :
104
+ pass
105
+ # pyenv install desired_versions
106
+
107
+ # ####################
108
+
88
109
if not envconfig .tox_pyenv_fallback :
89
110
raise PyenvWhichFailed (err )
90
111
LOG .debug ("`%s` failed thru tox-pyenv plugin, falling back. "
You can’t perform that action at this time.
0 commit comments