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

fix: pkg_resources deprecated warning #926

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/rosdep2/platforms/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

from __future__ import print_function

import importlib.metadata
SubaruArai marked this conversation as resolved.
Show resolved Hide resolved
import os
import pkg_resources
import subprocess
import sys

Expand Down Expand Up @@ -130,8 +130,8 @@ def __init__(self):
super(PipInstaller, self).__init__(pip_detect, supports_depends=True)

def get_version_strings(self):
pip_version = pkg_resources.get_distribution('pip').version
setuptools_version = pkg_resources.get_distribution('setuptools').version
pip_version = importlib.metadata.version('pip')
setuptools_version = importlib.metadata.version('setuptools')
version_strings = [
'pip {}'.format(pip_version),
'setuptools {}'.format(setuptools_version),
Expand Down