Ah. I see. The thing is that I need to be able to run this in pythonista on my iPad for ideal portability between different OS’s. Idk whether I could cffi on my Mac for this and then move it over to pythonista. Bottom line is that I need to somehow get this code running in pythonista because I don’t exactly want to do a complete port of it to the python programming language.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by TechnoExplorer
-
RE: Request to add pylzfse to Pythonista
-
RE: Request to add pylzfse to Pythonista
If you can’t build c extensions, then why is there a page dedicated to it? - http://omz-software.com/pythonista/docs/extending/building.html
-
RE: Request to add pylzfse to Pythonista
I wanted to try and build it as a c extention for pythonista. I have already suceeded in building it for macOS, but having trouble building it for pythonista. I've tried both pip and python setup.py build, but they both fail. In truth, there are no errors, but it doesn’t show up when I try to import it.
This is what I get when I try to install it
[pylzfse]$ python setup.py install
running install
running build
running build_ext
building 'lzfse' extension
xcrun --sdk iphonesimulator clang -arch x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -miphoneos-version-min=7.0 -fno-strict-aliasing -OPT:Olimit=0 -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ilzfse/src -I/var/containers/Bundle/Application/6419CEB5-AE35-4A82-8ED9-EC7744B0314A/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/include/python2.7 -c lzfse/src/lzvn_decode_base.c -o build/temp.darwin-18.2.0-iPad5,3-2.7/lzfse/src/lzvn_decode_base.o -std=c99 -
Request to add pylzfse to Pythonista
Hi
I was wondering whether pylzfse could be added to pythonista as I’m currently working on an image decompression project.
Also I can’t just copy the code over as its c code.
Thanks