blob: 2fc4047b8fccae55a7c0dcf52c1a95bdd4e1dc6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
https://gitlab.com/arandr/arandr/-/work_items/58
https://bugs.gentoo.org/969799#c10
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,13 @@ class NoOptionCommand(Command):
"""Command that doesn't take any options"""
user_options = []
- def initialize_options(self): pass
+ def initialize_options(self):
+ try:
+ super().initialize_options()
+ except Exception:
+ pass
+ if not hasattr(self, "dry_run"):
+ self.dry_run = False
def finalize_options(self): pass
class update_pot(NoOptionCommand):
|