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 {
95
95
' "pre": False,' ,
96
96
' "verbose": False,' ,
97
97
'}' ,
98
- `piplite.piplite._PIPLITE_INTERNAL_FLAGS = {"disable_pypi": ${ disablePyPIFallback ? 'True' : 'False' } }` ,
99
98
`piplite.piplite._PIPLITE_URLS = ${ JSON . stringify ( pipliteUrls ) } ` ,
99
+ `piplite.piplite._PIPLITE_INTERNAL_FLAGS = {"disable_pypi": ${ disablePyPIFallback ? 'True' : 'False' } }` ,
100
100
] ;
101
101
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
+
102
112
// get piplite early enough to impact pyodide-kernel dependencies
103
113
await this . _pyodide . runPythonAsync ( pythonConfig . join ( '\n' ) ) ;
104
114
}
You can’t perform that action at this time.
0 commit comments