##// END OF EJS Templates
IPython/utils/_process_emscripten.py: New (#14316)...
M Bussonnier -
r28620:d73fcbdb merge
parent child Browse files
Show More
@@ -0,0 +1,21 b''
1 """Emscripten-specific implementation of process utilities.
2
3 This file is only meant to be imported by process.py, not by end-users.
4 """
5
6
7 def system(cmd):
8 raise OSError("Not available")
9
10
11 def getoutput(cmd):
12 raise OSError("Not available")
13
14
15 def check_pid(cmd):
16 raise OSError("Not available")
17
18
19 def arg_split(s, posix=False, strict=True):
20 """This one could be made to work but it's not clear if it would be useful..."""
21 raise OSError("Not available")
@@ -15,6 +15,8 b" if sys.platform == 'win32':"
15 from ._process_win32 import system, getoutput, arg_split, check_pid
15 from ._process_win32 import system, getoutput, arg_split, check_pid
16 elif sys.platform == 'cli':
16 elif sys.platform == 'cli':
17 from ._process_cli import system, getoutput, arg_split, check_pid
17 from ._process_cli import system, getoutput, arg_split, check_pid
18 elif sys.platform == "emscripten":
19 from ._process_emscripten import system, getoutput, arg_split, check_pid
18 else:
20 else:
19 from ._process_posix import system, getoutput, arg_split, check_pid
21 from ._process_posix import system, getoutput, arg_split, check_pid
20
22
@@ -34,7 +34,7 b' install_requires ='
34 exceptiongroup; python_version<'3.11'
34 exceptiongroup; python_version<'3.11'
35 jedi>=0.16
35 jedi>=0.16
36 matplotlib-inline
36 matplotlib-inline
37 pexpect>4.3; sys_platform != "win32"
37 pexpect>4.3; sys_platform != "win32" and sys_platform != "emscripten"
38 prompt_toolkit>=3.0.41,<3.1.0
38 prompt_toolkit>=3.0.41,<3.1.0
39 pygments>=2.4.0
39 pygments>=2.4.0
40 stack_data
40 stack_data
General Comments 0
You need to be logged in to leave comments. Login now