r/pythonhelp • u/alonbit1106 • Mar 24 '22
issue turning pypy to exe with pyinstaller.
(English is not my main language so if my writing seems offensive or weird please forgive me.)
well, after using pypy as a replacement of python for about 4 months or more, I just realized that pyinstaller doesn't work with pypy, or at least for me, if anyone knows how can I fix it or if there is any replacement of pyinstaller that works with pypy please tell me!
screenshot of the problem:
https://prnt.sc/6nOl87gj8-HH
thanks to all the readers and commenters!.
2
Upvotes
2
u/MT1961 Mar 24 '22
From the creators of pyinstaller:
There are no specific plans to support PyPy. Is is more place for possible
contributions.
PyInstaller is sensitive to the way how CPython is packaged. PyPy is packaged
differently so you could expect different issues with paths.
PyInstaller depends on python.dll. In PyPy there is libpypy-c.dll. If
libpypy-c also provides the same ABI as python.dll it should not be that hard
to add support for pypy.
Another source of issues could be that pypy contains different set of built-in
modules than c-python and it might be necessary to fix some import hooks.
So, basically, no. You could shift to CPython and see if that works out better.