mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Move pylib -> crates/pylib (#6225)
* Move `pylib * clean `build.rs` a bit
This commit is contained in:
1 parent
609d99f1e3
commit
5eac229eae
7 files changed
+8
-7
No files matched your search
+1
-2
@@ -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.
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../Lib/
|
||||
@@ -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.
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user