python-archive icon indicating copy to clipboard operation
python-archive copied to clipboard

Toolify

Open mortenvp opened this issue 8 years ago • 0 comments

Hi this pull-request contains two changes. Both are motivated by the need "package/bundle" the module with a different stand-alone tool (see waf build-system).

Basically waf works by creating a self-extracting binary, with all the python code it needs bundled inside.

Two things happen:

  1. All comments are stripped. This does not work with python-archive since it defines the exception classes with only a doc string. Leading to a syntax error when those doc strings are removed. Therefore I've added the pass statement.
  2. The module gets relocated, there for the absolute import does not work, and we need to do a relative import.

Hope this could be accepted :)

Thanks for a nice module - all the best!

mortenvp avatar Apr 20 '17 11:04 mortenvp