File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/pyodide-kernel/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,20 @@ export class PyodideRemoteKernel {
9595 ' "pre": False,' ,
9696 ' "verbose": False,' ,
9797 '}' ,
98- `piplite.piplite._PIPLITE_INTERNAL_FLAGS = {"disable_pypi": ${ disablePyPIFallback ? 'True' : 'False' } }` ,
9998 `piplite.piplite._PIPLITE_URLS = ${ JSON . stringify ( pipliteUrls ) } ` ,
99+ `piplite.piplite._PIPLITE_INTERNAL_FLAGS = {"disable_pypi": ${ disablePyPIFallback ? 'True' : 'False' } }` ,
100100 ] ;
101101
102+ if ( pipliteInstallDefaultOptions ) {
103+ for ( const [ key , value ] of Object . entries ( pipliteInstallDefaultOptions ) ) {
104+ if ( value !== undefined ) {
105+ pythonConfig . push (
106+ `piplite.piplite._PIPLITE_DEFAULT_INSTALL_ARGS["${ key } "] = ${ JSON . stringify ( value ) } ` ,
107+ ) ;
108+ }
109+ }
110+ }
111+
102112 // get piplite early enough to impact pyodide-kernel dependencies
103113 await this . _pyodide . runPythonAsync ( pythonConfig . join ( '\n' ) ) ;
104114 }
You can’t perform that action at this time.
0 commit comments