-
Notifications
You must be signed in to change notification settings - Fork 66
/
buildunasync.py
27 lines (26 loc) · 958 Bytes
/
buildunasync.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import unasync
build_py = unasync.cmdclass_build_py(
rules=[
unasync.Rule(
fromdir='/ahk/_async/',
todir='/ahk/_sync/',
additional_replacements={
'AsyncAHK': 'AHK',
'AsyncTransport': 'Transport',
'AsyncWindow': 'Window',
'AsyncControl': 'Control',
'AsyncDaemonProcessTransport': 'DaemonProcessTransport',
'_AIOP': '_SIOP',
'async_create_process': 'sync_create_process',
'adrain_stdin': 'drain_stdin',
'a_send_nonblocking': 'send_nonblocking',
'async_sleep': 'sleep',
'AsyncFutureResult': 'FutureResult',
'_async_run_nonblocking': '_sync_run_nonblocking',
'acommunicate': 'communicate',
'astart': 'start',
# "__aenter__": "__aenter__",
},
),
]
)