From 1c9da3362a1eaace453c477028bbcd9e0afe2300 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 17 Jan 2024 19:21:44 +0100 Subject: [PATCH] Remove old unused version check that depends on a binary named python (#109) --- catkin_virtualenv/src/catkin_virtualenv/venv.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/catkin_virtualenv/src/catkin_virtualenv/venv.py b/catkin_virtualenv/src/catkin_virtualenv/venv.py index a1a778a..9448d28 100644 --- a/catkin_virtualenv/src/catkin_virtualenv/venv.py +++ b/catkin_virtualenv/src/catkin_virtualenv/venv.py @@ -90,14 +90,6 @@ def initialize(self, python, use_system_packages, extra_pip_args, clean=True): run_command(virtualenv, check=True) if without_pip: - # install pip via get-pip.py - version_proc = run_command( - ["python", "-cimport sys; print('{}.{}'.format(*sys.version_info))"], capture_output=True - ) - version = version_proc.stdout - if isinstance(version, bytes): - version = version.decode("utf-8") - version = version.strip() # download pip from https://bootstrap.pypa.io/pip/ get_pip_path, _ = urlretrieve("https://bootstrap.pypa.io/pip/get-pip.py") run_command([self._venv_bin("python"), get_pip_path], check=True)