Closed da-h closed 5 years ago
This commit will be deferred for a possible-future version of pybison.
The main problem is that the compiled file src/bison/cython/bison_.pyx
is to large to be shared with all subprojects. This could only be done with a minimal .so
-loader. (Other projects that use pybison would need to keep that file up-to-date).
Until then, pybison-binaries are compiled & deployed to PyPI for windows, osx and linux (manylinux2010). Other projects cann use these to load their compiled language-specific dynamic libraries that are built by pybison.
One disadvantage: if loading of binaries fails, pybison tries to recompile, however the toolchain (bison, flex, gcc) may not be installed. However, the upside is, that even when the project is not compiled for some system, the user only needs to install the rather small toolchain.
pybison-runtime
This is a sub-package that contains only those python classes that are required to run a pre-compiled pybison library.
Things to to
setup.py
/tmp/pybison
should not be used in this case )