Page 1 of 1

[SOLVED] option WAPT.options.force in setup.py

Published: January 17, 2025 - 3:10 PM
by Olivier Schmitt
Hello everyone,

I would like to know if WAPT.options.force returns true or 1 when in the console we click on the package and we do a forced installation?

Thanks in advance.

Re: option WAPT.options.force in setup.py

Published: January 20, 2025 - 3:47 PM
by sfonteneau
In code:

Code: Select all

parser.add_option("-f", "--force",    dest="force",    default=False, action='store_true', help="Force (default: %default)")
Action is store_true, This should normally be a boolen

But normally in a package you just have to do "if force" in a package

Re: option WAPT.options.force in setup.py

Published: January 30, 2025 - 5:56 PM
by Olivier Schmitt
Thanks you are right, I have use "if force:"

Re: option WAPT.options.force in setup.py

Published: January 31, 2025 - 12:30 PM
by dcardon
Hi Olivier,

thanks for the update :-) , I'll close the topic.

Dennis