ilanschnell / bsdiff4

binary diff and patch using the BSDIFF4-format
Other
118 stars 26 forks source link

Building wheels fails due to distutils incompatibility #18

Closed Fumon closed 2 years ago

Fumon commented 4 years ago

Running

$ python setup.py bdist_wheel

produces error:

/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'

17 Fixes this and produces viable binary wheels.

Tested on Python 3.8.5 and Python 2.7.18 on Windows and Linux

ilanschnell commented 2 years ago

Thanks, I fixed this by using setuptools (and falling back to distutils), and am also building wheels for PyPI now (using pypa/cibuildwheel).