Move pylib -> crates/pylib (#6225)

* Move `pylib

* clean `build.rs` a bit
This commit is contained in:
Shahar Naveh authored and GitHub committed 2025-11-15 07:05:08 +09:00
1 parent 609d99f1e3
commit 5eac229eae
7 files changed
+8 -7

No files matched your search

+1 -2
View File
@@ -131,7 +131,6 @@ members = [
"jit",
"vm",
"vm/sre_engine",
"pylib",
"stdlib",
"derive-impl",
"wtf8",
@@ -157,7 +156,7 @@ rustpython-derive-impl = { path = "derive-impl", version = "0.4.0" }
rustpython-jit = { path = "jit", version = "0.4.0" }
rustpython-literal = { path = "compiler/literal", version = "0.4.0" }
rustpython-vm = { path = "vm", default-features = false, version = "0.4.0" }
rustpython-pylib = { path = "pylib", version = "0.4.0" }
rustpython-pylib = { path = "crates/pylib", version = "0.4.0" }
rustpython-stdlib = { path = "stdlib", default-features = false, version = "0.4.0" }
rustpython-sre_engine = { path = "vm/sre_engine", version = "0.4.0" }
rustpython-wtf8 = { path = "wtf8", version = "0.4.0" }
File renamed without changes.
+1
View File
@@ -0,0 +1 @@
../../Lib/
+5 -3
View File
@@ -1,10 +1,12 @@
const CRATE_ROOT: &str = "../..";
fn main() {
process_python_libs("../vm/Lib/python_builtins/*");
process_python_libs(format!("{CRATE_ROOT}/vm/Lib/python_builtins/*").as_str());
process_python_libs(format!("{CRATE_ROOT}/vm/Lib/core_modules/*").as_str());
process_python_libs("../vm/Lib/core_modules/*");
#[cfg(feature = "freeze-stdlib")]
if cfg!(windows) {
process_python_libs("../Lib/**/*");
process_python_libs(format!("{CRATE_ROOT}/Lib/**/*").as_str());
} else {
process_python_libs("./Lib/**/*");
}
File renamed without changes.
+1 -1
View File
@@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
rustpython = { path = "../../", default-features = false, features = ["freeze-stdlib"] }
rustpython-vm = { path = "../../vm", default-features = false, features = ["freeze-stdlib"] }
rustpython-pylib = { path = "../../pylib", default-features = false, features = ["freeze-stdlib"] }
rustpython-pylib = { path = "../../crates/pylib", default-features = false, features = ["freeze-stdlib"] }
[workspace]
-1
View File
@@ -1 +0,0 @@
../Lib