Skip to content
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

Merged
merged 2 commits into from
Jan 16, 2020
Merged

First python2 issue of 2020 #49

merged 2 commits into from
Jan 16, 2020

Conversation

paulbovbel
Copy link
Member

@paulbovbel paulbovbel commented Jan 16, 2020

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.

@@ -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])
Copy link
Member Author

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')
Copy link
Member Author

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):
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

@paulbovbel paulbovbel merged commit 20155b1 into master Jan 16, 2020
garyservin pushed a commit that referenced this pull request Feb 5, 2020
* Clean up options, virtualenv installs setuptools by default
* Make sure we install a compatible setuptools version for py2 venv
@knorth55
Copy link
Contributor

This PR solves our problems!
Do you have any plan to release catkin_virtualenv with this commit soon?

@paulbovbel
Copy link
Member Author

paulbovbel commented Feb 10, 2020

@knorth55, done, thanks for the reminder.

ros/rosdistro#23719

@pazeshun
Copy link

pazeshun commented Apr 1, 2020

@paulbovbel Sorry, but do you have plan to release this to kinetic?

@pazeshun
Copy link

Thank you for releasing!!!

@paulbovbel paulbovbel deleted the py2-mess branch July 28, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants