liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.45k stars 224 forks source link

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

Open pr0ton11 opened 9 years ago

pr0ton11 commented 9 years ago

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.

liftoff commented 9 years ago

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...

hdittakavi commented 7 years ago

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?

liftoff commented 7 years ago

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