1414ecodes_c_path = curdir / "src/evdev/ecodes.c"
1515
1616
17- def create_ecodes (headers = None , reproducibility = False ):
17+ def create_ecodes (headers = None , reproducible = False ):
1818 if not headers :
1919 include_paths = set ()
2020 cpath = os .environ .get ("CPATH" , "" ).strip ()
@@ -66,8 +66,8 @@ def create_ecodes(headers=None, reproducibility=False):
6666 print ("writing %s (using %s)" % (ecodes_c_path , " " .join (headers )))
6767 with ecodes_c_path .open ("w" ) as fh :
6868 cmd = [sys .executable , "src/evdev/genecodes_c.py" ]
69- if reproducibility :
70- cmd .append ("--reproducibility " )
69+ if reproducible :
70+ cmd .append ("--reproducible " )
7171 cmd .extend (["--ecodes" , * headers ])
7272 run (cmd , check = True , stdout = fh )
7373
@@ -77,21 +77,21 @@ class build_ecodes(Command):
7777
7878 user_options = [
7979 ("evdev-headers=" , None , "colon-separated paths to input subsystem headers" ),
80- ("reproducibility " , None , "hide host details (host/paths) to create a reproducible output" ),
80+ ("reproducible " , None , "hide host details (host/paths) to create a reproducible output" ),
8181 ]
8282
8383 def initialize_options (self ):
8484 self .evdev_headers = None
85- self .reproducibility = False
85+ self .reproducible = False
8686
8787 def finalize_options (self ):
8888 if self .evdev_headers :
8989 self .evdev_headers = self .evdev_headers .split (":" )
90- if self .reproducibility is None :
91- self .reproducibility = False
90+ if self .reproducible is None :
91+ self .reproducible = False
9292
9393 def run (self ):
94- create_ecodes (self .evdev_headers , reproducibility = self .reproducibility )
94+ create_ecodes (self .evdev_headers , reproducible = self .reproducible )
9595
9696
9797class build_ext (_build_ext .build_ext ):
0 commit comments