Skip to content

Commit

Permalink
Remove old unused version check that depends on a binary named python (
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerj authored and paulbovbel committed Apr 5, 2024
1 parent 68906a9 commit 1c9da33
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions catkin_virtualenv/src/catkin_virtualenv/venv.py
Expand Up @@ -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)
Expand Down

0 comments on commit 1c9da33

Please sign in to comment.