File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
repo2docker/buildpacks/pipfile Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import toml
13
13
14
+ from ...semver import parse_version as V
14
15
from ..conda import CondaBuildPack
15
16
16
17
VERSION_PAT = re .compile (r"\d+(\.\d+)*" )
@@ -87,10 +88,15 @@ def get_preassemble_scripts(self):
87
88
"""scripts to run prior to staging the repo contents"""
88
89
scripts = super ().get_preassemble_scripts ()
89
90
# install pipenv to install dependencies within Pipfile.lock or Pipfile
91
+ if V (self .python_version ) < V ("3.6" ):
92
+ # last pipenv version to support 2.7, 3.5
93
+ pipenv_version = "2021.5.29"
94
+ else :
95
+ pipenv_version = "2022.1.8"
90
96
scripts .append (
91
97
(
92
98
"${NB_USER}" ,
93
- "${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir pipenv==2018.11.26 " ,
99
+ f "${{ KERNEL_PYTHON_PREFIX}} /bin/pip install --no-cache-dir pipenv=={ pipenv_version } " ,
94
100
)
95
101
)
96
102
return scripts
You can’t perform that action at this time.
0 commit comments