Page 1 of 1

[SOLVED] unzip_with_7zip() function in WAPT 2.4

Published: June 5, 2023 - 2:16 PM
by Erousseau
Hello,

In WAPT version 2.4, the `unzip_with_7zip()` function was moved from `setuphelpers` to `setupdevhelpers`. I use this function in my packages.

What am I supposed to do? Simply import the `setupdevhelpers` library?

More generally, what is the difference between the `setuphelpers` and `setupdevhelpers` libraries?

Thank you

, Etienne

Re: unzip_with_7zip() function in WAPT 2.4

Published: June 6, 2023 - 09:23
by dcardon
Hello Etienne,

the function in question calls binaries external to WAPT and should never have been included in the setuphelpers (which should not depend on external components). In this case, the function doesn't work if 7-Zip isn't installed on the machine. That's why it was removed from setuphelpers_windows.py and moved to setupdevhelpers.py. We apologize; we try to minimize behavioral changes in setuphelpers.py precisely to avoid these kinds of problems.

For the WADS part, we've been working on integrating the 7zip.dll library (especially for handling .wim files). Once that's finished and the WAPT installer integrates 7zip.dll, we'll be able to have the function in setuphelpers_windows.py.

In the meantime, I think the simplest solution is for you to copy the function's code into your package before the def install() function.

Sincerely,

Denis

[SOLVED] unzip_with_7zip() function in WAPT 2.4

Published: June 6, 2023 - 5:36 PM
by Erousseau
Hi Denis,

thanks for your reply, it's clear.

I've rewritten my own function to launch 7-Zip (based on your `unzip_with_7zip` function).

Etienne

Re: [SOLVED] unzip_with_7zip() function in WAPT 2.4

Published: June 8, 2023 - 1:04 PM
by dcardon
Thank you for your feedback, :-)
Denis.