mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
feat(els): suggest external python libs
This commit is contained in:
parent
798f22afa4
commit
7ba874a85c
2 changed files with 111 additions and 29 deletions
|
@ -530,6 +530,24 @@ pub const BUILTIN_PYTHON_MODS: [&str; 165] = [
|
|||
"zlib",
|
||||
"zoneinfo",
|
||||
];
|
||||
pub const EXT_PYTHON_MODS: [&str; 7] = [
|
||||
"matplotlib",
|
||||
"numpy",
|
||||
"pandas",
|
||||
"requests",
|
||||
"setuptools",
|
||||
"tqdm",
|
||||
"urllib3",
|
||||
];
|
||||
pub const EXT_COMMON_ALIAS: [&str; 7] = [
|
||||
"mpl",
|
||||
"np",
|
||||
"pd",
|
||||
"requests",
|
||||
"setuptools",
|
||||
"tqdm",
|
||||
"urllib3",
|
||||
];
|
||||
|
||||
pub fn opt_which_python() -> Result<String, String> {
|
||||
let (cmd, python) = if cfg!(windows) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue