Skip to content

Commit eee3b43

Browse files
authored
fix(docker): pip upgrade command removed (#218)
* Removed pip update command from docker build artifacts in cfn submit
1 parent 6749ca1 commit eee3b43

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

python/rpdk/python/codegen.py

+1-16
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,6 @@ def _build(self, base_path):
246246
self._pip_build(base_path)
247247
LOG.debug("Dependencies build finished")
248248

249-
@staticmethod
250-
def _update_pip_command():
251-
return [
252-
"python",
253-
"-m",
254-
"pip",
255-
"install",
256-
"--upgrade",
257-
"pip",
258-
]
259-
260249
@staticmethod
261250
def _make_pip_command(base_path):
262251
return [
@@ -280,11 +269,7 @@ def _get_plugin_information() -> Dict:
280269
def _docker_build(cls, external_path):
281270
internal_path = PurePosixPath("/project")
282271
command = (
283-
'/bin/bash -c "'
284-
+ " ".join(cls._update_pip_command())
285-
+ " && "
286-
+ " ".join(cls._make_pip_command(internal_path))
287-
+ '"'
272+
'/bin/bash -c "' + " ".join(cls._make_pip_command(internal_path)) + '"'
288273
)
289274
LOG.debug("command is '%s'", command)
290275

0 commit comments

Comments
 (0)