Skip to content

Commit

Permalink
Constrain setuptools version to compatible versions
Browse files Browse the repository at this point in the history
setuptools removed the `format_command` property of the `bdist` command, which setuptools-cythonize relies on.

This results in the following error:
```
File "D:\win_temp\pip-build-env-avucl34u\overlay\Lib\site-packages\setuptools_cythonize.py", line 166, in set_default_wheel_format
    cls.format_command['wheel'] = ('bdist_wheel', "Python .whl file")
AttributeError: type object 'CythonizeBdist' has no attribute 'format_command'
```

It works with setuptools versions <=63.3.0, so a workaround is to constrain the setuptools version to that.
  • Loading branch information
StefanD986 committed Aug 3, 2022
1 parent 7466537 commit 318c6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():
py_modules=["setuptools_cythonize"],
include_package_data=True,
install_requires=[
'setuptools>=36.2.0',
'setuptools>=36.2.0, <=63.3.0',
'wheel>=0.29.0',
'cython>=0.25.2'
],
Expand Down

0 comments on commit 318c6b4

Please sign in to comment.