File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -167,15 +167,23 @@ def run_test(
167
167
command = f"python3 /srv/src/bootstrap/bootstrap.py --version={ upgrade_from } "
168
168
run_command (container_name , command )
169
169
170
+ # show user environment
171
+ command = "/opt/tljh/user/bin/mamba list"
172
+ run_command (container_name , command )
173
+
170
174
command = f"python3 /srv/src/bootstrap/bootstrap.py { ' ' .join (installer_args )} "
171
175
run_command (container_name , command )
172
176
177
+ # show user environment (again if upgrade)
178
+ command = "/opt/tljh/user/bin/mamba list"
179
+ run_command (container_name , command )
180
+
173
181
# Install pkgs from requirements in hub's pip, where
174
182
# the bootstrap script installed the others
175
183
command = "/opt/tljh/hub/bin/python3 -m pip install -r /srv/src/integration-tests/requirements.txt"
176
184
run_command (container_name , command )
177
185
178
- # show environment
186
+ # show hub environment
179
187
command = "/opt/tljh/hub/bin/python3 -m pip freeze"
180
188
run_command (container_name , command )
181
189
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def tljh_extra_user_conda_packages():
12
12
13
13
@hookimpl
14
14
def tljh_extra_user_pip_packages ():
15
- return ["django " ]
15
+ return ["simplejson " ]
16
16
17
17
18
18
@hookimpl
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def test_tljh_extra_user_conda_packages():
20
20
21
21
22
22
def test_tljh_extra_user_pip_packages ():
23
- subprocess .check_call ([f"{ USER_ENV_PREFIX } /bin/python3" , "-c" , "import django " ])
23
+ subprocess .check_call ([f"{ USER_ENV_PREFIX } /bin/python3" , "-c" , "import simplejson " ])
24
24
25
25
26
26
def test_tljh_extra_hub_pip_packages ():
Original file line number Diff line number Diff line change @@ -242,11 +242,10 @@ def ensure_user_environment(user_requirements_txt_file):
242
242
)
243
243
to_upgrade .append (pkg )
244
244
245
- # force reinstall conda/mamba to ensure a basically consistent env
246
- # avoids issues with RemoveError: 'requests' is a dependency of conda
247
- # only do this for 'old' conda versions known to have a problem
248
- # we don't know how old, but we know 4.10 is affected and 23.1 is not
249
- if not is_fresh_install and V (package_versions .get ("conda" , "0" )) < V ("23.1" ):
245
+ # force reinstall conda/mamba to ensure conda doesn't raise error
246
+ # "RemoveError: 'requests' is a dependency of conda" later on when
247
+ # conda/mamba is used to install/upgrade something
248
+ if not is_fresh_install :
250
249
# force-reinstall doesn't upgrade packages
251
250
# it reinstalls them in-place
252
251
# only reinstall packages already present
You can’t perform that action at this time.
0 commit comments