14
14
ecodes_c_path = curdir / "src/evdev/ecodes.c"
15
15
16
16
17
- def create_ecodes (headers = None , reproducibility = False ):
17
+ def create_ecodes (headers = None , reproducible = False ):
18
18
if not headers :
19
19
include_paths = set ()
20
20
cpath = os .environ .get ("CPATH" , "" ).strip ()
@@ -66,8 +66,8 @@ def create_ecodes(headers=None, reproducibility=False):
66
66
print ("writing %s (using %s)" % (ecodes_c_path , " " .join (headers )))
67
67
with ecodes_c_path .open ("w" ) as fh :
68
68
cmd = [sys .executable , "src/evdev/genecodes_c.py" ]
69
- if reproducibility :
70
- cmd .append ("--reproducibility " )
69
+ if reproducible :
70
+ cmd .append ("--reproducible " )
71
71
cmd .extend (["--ecodes" , * headers ])
72
72
run (cmd , check = True , stdout = fh )
73
73
@@ -77,21 +77,21 @@ class build_ecodes(Command):
77
77
78
78
user_options = [
79
79
("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" ),
81
81
]
82
82
83
83
def initialize_options (self ):
84
84
self .evdev_headers = None
85
- self .reproducibility = False
85
+ self .reproducible = False
86
86
87
87
def finalize_options (self ):
88
88
if self .evdev_headers :
89
89
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
92
92
93
93
def run (self ):
94
- create_ecodes (self .evdev_headers , reproducibility = self .reproducibility )
94
+ create_ecodes (self .evdev_headers , reproducible = self .reproducible )
95
95
96
96
97
97
class build_ext (_build_ext .build_ext ):
0 commit comments