Closed yacchi closed 2 years ago
Hello @yacchi, and thank you for bringing this to my attention. I will take a closer look at this later this evening.
Strange, but this issue does not appear to be reproducible on Windows.
However, it is easily apparent on Mac, and obviously on Linux as well.
I think the best thing may be to finally drop support for Python2, so that we will not need the use_2to3 bit...
How about not using "use_2to3" when setuptools is 58 or later? (setuptools does not support Python2 for versions after 45).
However, since Python2 is already EoL and this project is very stable, I prefer to drop support for Python2 because it's easier to understand.
How about not using "use_2to3" when setuptools is 58 or later? Yes, I thought about that...
However, since Python2 is already EoL and this project is very stable, I prefer to drop support for Python2 because it's easier to understand. ... but as you say, dropping Python2 support would make things much simpler. I think if anyone is still using Python2 and natto-py, they can just continue using v0.9.2.
Please give me some time to remove the Python2 support bits, and then make a new release.
Thank you for your patience!
@yacchi. I apologize for making you wait, but I have finished making changes to remove support for Python 2. These changes will resolve the issue you reported with setuptools and the "use_2to3" feature. I will be releasing 1.0.0 later this evening.
OK, the natto-py 1.0.0 release is now available. @yacchi, could you please try 1.0.0 and see if we have resolved the problem with setuptools and use_2to3?
@buruzaemon Thanks for the update! I tried both the steps above and poetry and was able to install it correctly.
When I try to install natto-py, I got an error message and it fails.
I found that support for "2to3" has been removed in setuptools v58.0.0, and this seems to be the cause of the failure. https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
According to the setuptools changelog, there is a way to pinning the version of setuptools. However, if there are libraries that depend on newer versions of setuptools in the future, it will not be possible to install them again. Is there any way to support v58.0.0 or later?
I tried to install natto-py on the Python Official Docker image: