You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking into account that the CI / CD supports many options (static, dynamic, from source, with cython, without, etc) this modification at this point could break it.
Activity
jdcaballerov commentedon Apr 28, 2020
Naming was discussed and defined for libzim here: #2 (comment)
Having a package hierarchy in Cython is basically doing two extensions. That means that is not as in normal python as creating a dir and putting the files.
Taking into account that the CI / CD supports many options (static, dynamic, from source, with cython, without, etc) this modification at this point could break it.
if going from
to
is definitively desired , then creating a new package could be easier for you with the existent code under the branch
readerhttps://github.com/openzim/python-libzim/tree/readerpirate commentedon Apr 28, 2020
Adding another layer of hierarchy to the extension is pretty easy in theory (1-2hr maybe?), but I think it can be done as a separate task:
ext_modules = cythonize([ Extension( "libzim", sources=["libzim/**/*.pyx","libzim/**/*.cxx"], - include_dirs=["libzim"], + include_dirs=["libzim/reader", "libzim/writer"], libraries=["zim"], ... ) ], compiler_directives={'language_level' : "3"}, )+ some rejiggering of
.gitignoreandManifest.inMove public writer classes in a writer sub-module.
Move public writer classes in a writer sub-module.
Move public writer classes in a writer sub-module.
Move public writer classes in a writer sub-module.