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

python3: conflict between vendored and system packages #4623

Closed
lazka opened this issue Nov 7, 2018 · 2 comments
Closed

python3: conflict between vendored and system packages #4623

lazka opened this issue Nov 7, 2018 · 2 comments

Comments

@lazka
Copy link
Member

lazka commented Nov 7, 2018

$ pip3 list -o
Exception:
Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python3.7/site-packages\pip\_internal\basecommand.py", line 141, in main
    status = self.run(options, args)
  File "C:/msys64/mingw64/lib/python3.7/site-packages\pip\_internal\commands\list.py", line 136, in run
    packages = self.get_outdated(packages, options)
  File "C:/msys64/mingw64/lib/python3.7/site-packages\pip\_internal\commands\list.py", line 147, in get_outdated
    dist for dist in self.iter_packages_latest_infos(packages, options)
  File "C:/msys64/mingw64/lib/python3.7/site-packages\pip\_internal\commands\list.py", line 148, in <listcomp>
    if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'Version'

From a quick look, setuptools vendors packaging/six/pyparsing, which probably clashes with the system ones. We should try removing those and add them as package dependencies instead.

@lazka
Copy link
Member Author

lazka commented Nov 8, 2018

Or we could revert #4379 so that pip uses it's vendored deps.

@Alexpux should we unbundle the dependencies of setuptools like we currently do with pip or let setuptools+pip include all their dependencies?

@Alexpux
Copy link
Member

Alexpux commented Nov 9, 2018

I think we can try to unbundle deps if it. It much work to support unbundle patch

lazka added a commit to lazka/MINGW-packages that referenced this issue Nov 9, 2018
Since pip got unvendored in msys2#4379 the Python classes of system packages
and vendored packages clash. This removes the vendored packages from
setuptools so only system dependencies are used in both pip and setuptools.

The downside of this is that it's not officially supported by upstream
and this creates cyclic dependencies and makes bootstrapping harder.

If this turns out to be a problem we should probably revert this
and msys2#4379.
@Alexpux Alexpux closed this as completed in 802c0b9 Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants