pyminifier icon indicating copy to clipboard operation
pyminifier copied to clipboard

Problem with --pyz if modules require other modules to run

Open pr0ton11 opened this issue 10 years ago • 3 comments

I like pyminifier and use it a lot.

There's a minor issue if a module imported into init.py has some other imports, which are required for the imported modules but not for init.py. Those are not included. So the finished file does not work (module xy not found).

Thanks you for fixing this issue soon.

pr0ton11 avatar Jan 27 '15 14:01 pr0ton11

I assume you have this problem when using the --pyz option? Because if you minify your dependencies individually it should still work fine.

I'll check the code that does the --pyz thing to make sure it looks at imports inside of __init__.py files anyway...

liftoff avatar Jan 30 '15 18:01 liftoff

Thank you for all the effort you are putting into this. Is this issue --pyz not including the dependencies resolved yet? If not when will this be resolved?

hdittakavi avatar Jan 23 '17 23:01 hdittakavi

Yeah, I still haven't addressed this one yet. It's still in the TODO.

liftoff avatar Jan 24 '17 13:01 liftoff