Remove py_version check
There are some problems with it, so remove for now.
BUG=chromium:703769
TEST=None
Change-Id: I13b3f7d1c3c10e3a5cf08792adeae377af25cbd9
diff --git a/cros_venv/venvlib.py b/cros_venv/venvlib.py
index 6287306..0da7c4e 100644
--- a/cros_venv/venvlib.py
+++ b/cros_venv/venvlib.py
@@ -26,12 +26,6 @@
_BASE_DEPENDENCIES = ('setuptools==28.2.0', 'pip==8.1.2')
-def _py_version(path):
- """Get the version of the given Python binary."""
- return subprocess.check_output(
- [path, '-V'], stderr=subprocess.STDOUT).decode()
-
-
class Venv(object):
"""Wraps all operations on a virtualenv directory."""
@@ -66,9 +60,7 @@
def _venv_initialized(self):
"""Check if virtualenv is initialized properly."""
- return (
- os.path.exists(self._venv_python)
- and (_py_version(self._venv_python) == _py_version(_VENV_PY)))
+ return os.path.exists(self._venv_python)
def _init_venv(self):
"""Initialize virtualenv."""