Open nkehoe opened 2 years ago
Unfortunately pyrebase
needs pycryptodome
, which needs a recipe in order to build.
Writing a recipe for pycryptodome
may be trivial and will need a lot of patching, as it dynamically loads shared libraries via load_pycryptodome_raw_lib
.
Hi @misl6, any update on this issue?
If I understand correctly, kivy-ios "hacks" the production of .so/.pyd files (they are empty at the end), and generates .a files that can be compiled statically in Xcode, instead.
I don't know anything about this part, would the same hack be usable on pycryptodome?
Then the next part, I guess, would be to patch the cryptodome function below so that it opens "self" (the current process) instead of a separate .so/.pyd.
def load_lib(name, cdecl):
"""Load a shared library and return a handle to it.
@name, either an absolute path or the name of a library
in the system search path.
@cdecl, the C function declarations.
"""
if hasattr(ffi, "RTLD_DEEPBIND") and not os.getenv('PYCRYPTODOME_DISABLE_DEEPBIND'):
lib = ffi.dlopen(name, ffi.RTLD_DEEPBIND)
else:
lib = ffi.dlopen(name)
ffi.cdef(cdecl)
return lib
Versions
Describe the bug I am trying to add pyrebase to my build to connect my firebase database.
To Reproduce python toolchain.py pip install pyrebase4
Expected behavior install pyrebase
Logs
Screenshots
Additional context Add any other context about the problem here.