-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First python2 issue of 2020 #49
Conversation
@@ -204,8 +181,8 @@ def install_dependencies(self): | |||
# (pbovbel) allow pinning the pip version | |||
pip_package = 'pip==' + self.pip_version if self.pip_version else 'pip' | |||
# First, bootstrap pip with a reduced option set (well-supported options) | |||
print(self.pip_preinstall_prefix + self.pip_upgrade_args + ['-U', pip_package]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray print
if self.verbose: | ||
virtualenv.append('--verbose') | ||
if self.verbose: | ||
virtualenv.append('--verbose') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--verbose not supported by python -m venv
@@ -130,28 +128,6 @@ def __init__(self, | |||
# (pbovbel) Set pip_upgrade_args here to keep flags like -q, disregard L111 above. | |||
self.pip_upgrade_args = self.pip_args | |||
|
|||
@classmethod | |||
def from_options(cls, package, options): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused method
@@ -87,7 +86,6 @@ def __init__(self, | |||
self.pip_version = pip_version | |||
self.extra_virtualenv_arg = extra_virtualenv_arg | |||
self.verbose = verbose | |||
self.setuptools = setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this option is not really relevant - either way you end up with setuptools in the virtualenv
@@ -89,7 +89,7 @@ if __name__ == '__main__': | |||
log_file=None, | |||
builtin_venv=check_module(python_executable, 'venv'), | |||
builtin_pip=check_module(python_executable, 'pip'), | |||
pip_version='19.0.3' # (pbovbel) known working version | |||
pip_version='19.3.1' # (pbovbel) known working version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may as well try a new pip
* Clean up options, virtualenv installs setuptools by default * Make sure we install a compatible setuptools version for py2 venv
This PR solves our problems! |
@knorth55, done, thanks for the reminder. |
@paulbovbel Sorry, but do you have plan to release this to kinetic? |
Thank you for releasing!!! |
Test build here http://tailor.locusbots.io/blue/organizations/jenkins/ci%2Ftailor-distro/detail/0.1.16/120/pipeline
Newly released setuptools (45) explicitly not compatible with python2, so we need to make sure we install an older one in py2 venvs.