Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows binaries for CFFI-based regex2dfa #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rouge8
Copy link
Contributor

@rouge8 rouge8 commented Aug 23, 2015

This patch is unfortunately still a work in progress. I switched from py2exe to PyInstaller because the Python 2 version of py2exe is unmaintained and doesn't support CFFI. The binaries build, but not correctly, ugh. PyInstaller 3.0 (supposedly being released soon...) or looking more closely at the various compilers might fix this, but for now, probably revert back to the non-CFFI regex2dfa, at least on Windows.

rouge8 pushed a commit that referenced this pull request Aug 23, 2015
kpdyer/regex2dfa#14 replaced the CPython extension with a CFII
extension, but unfortunately py2exe doesn't work with CFFI at all. In #6,
I tried using PyInstaller to build the EXEs, but that's not an immediate
solution either.
@rouge8 rouge8 changed the title [WIP] Fix Windows binaries for CFFI-based regex2dfa Fix Windows binaries for CFFI-based regex2dfa Oct 7, 2015
@rouge8
Copy link
Contributor Author

rouge8 commented Oct 7, 2015

PyInstaller 3 was released and now this builds! @p1ck @ctanzini @coulls @kpdyer I don't know how to test the executable, but I updated for PyInstaller 3.0 while waiting for tests to pass on another project and was able to build successfully. 🎉

Andy Freeland added 2 commits October 8, 2015 01:50
This allows `build_marionette.py` to succeed, but py2exe still cannot
import regex2dfa.
The Python 2 version of py2exe hasn't been updated in years and doesn't
support CFFI. Fortunately, PyInstaller 3 has recently been released with
support for Python 2.6+/3.3+ on Windows, Linux, and OS X. It also
supports CFFI and other more recent Python libraries.

ref: https://github.com/pyinstaller/pyinstaller/blob/3.0/doc/CHANGES.rst#30-2015-10-04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant