Xpra: Ticket #2033: setuptools win32 breakage

It's not a bug, it's a feature: Drop support for self upgrade/installation.

And here what it looks like:

$ PYTHON=python2 sh win32/MINGW_BUILD.sh
Python 2.7.15
Python2 version
Xpra 2.5-r20978 (64-bit)
* Cleaning ./dist output directory
* Building Python 2 Cython modules
* Generating installation directory
ERROR: build failed, see win32/cx_freeze-install.log:
  File "C:/msys64/mingw64/lib/python2.7/distutils/dist.py", line 972, in run_command
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/dist.py", line 305, in run
  File "C:/msys64/mingw64/lib/python2.7/distutils/cmd.py", line 326, in run_command
  File "C:/msys64/mingw64/lib/python2.7/distutils/dist.py", line 972, in run_command
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/dist.py", line 219, in run
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/freezer.py", line 621, in Freeze
    self.finder = self._GetModuleFinder()
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/freezer.py", line 340, in _GetModuleFinder
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/finder.py", line 651, in IncludeModule
    namespace = namespace)
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/finder.py", line 351, in _ImportModule
    raise ImportError("No module named %r" % name)
ImportError: No module named 'pkg_resources._vendor.packaging'

Mon, 12 Nov 2018 17:02:35 GMT - totaamwin32: status changed; resolution set

Workaround is to use pip to re-install setuptools, which fixes whatever got wedged in there:

pacman -S mingw-w64-x86_64-python2-pip mingw-w64-x86_64-python3-pip
pip2 install --upgrade setuptools --force-reinstall
pip3 install --upgrade setuptools --force-reinstall

Hopefully they'll fix setuptools and we can then remember to remove pip and the dozen dependencies it installed..

Sat, 23 Jan 2021 05:40:21 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2033