These lines in setup.cfg setup leads to the creation of a script mydemo that will execute the run function of the module __main__:
[options.entry_points]
console_scripts =
mydemo = mypackage.__main__:run
I would like mydemo to execute run with disabled asserts. Is there a way of doing this ?
python -Ois the only way to disable asserts. See stackoverflow.com/a/56078190/7976758 Found in stackoverflow.com/search?q=%5Bpython%5D+disable+assertspython -0could be called by themydemoscript generated by the setuptools. I would not be crazy to imagine that this has been thought of.asserts have so little usage. BTW it's letterO(from the word "optimize"), not digit0.