Skip to content

Commit

Permalink
Remove crate from polars (#2890)
Browse files Browse the repository at this point in the history
Co-authored-by: Ritchie Vink <ritchie46@gmail.com>
  • Loading branch information
dandxy89 and ritchie46 committed Mar 14, 2022
1 parent ecb75a3 commit 7b2b368
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion polars/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ jsonpath_lib = { version = "0.3.0", optional = true, git = "https://github.com/r
lazy_static = "1.4"
ndarray = { version = "0.15", optional = true, default_features = false }
num = "^0.4"
num_cpus = "1"
polars-arrow = { version = "0.20.0", path = "../polars-arrow", features = ["compute"] }
polars-utils = { version = "0.20.0", path = "../polars-utils", optional = true }
prettytable-rs = { version = "0.8.0", optional = true }
Expand Down
4 changes: 3 additions & 1 deletion polars/polars-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ lazy_static! {
.num_threads(
std::env::var("POLARS_MAX_THREADS")
.map(|s| s.parse::<usize>().expect("integer"))
.unwrap_or_else(|_| num_cpus::get())
.unwrap_or_else(|_| std::thread::available_parallelism()
.unwrap_or(std::num::NonZeroUsize::new(1).unwrap())
.get())
)
.build()
.expect("could not spawn threads");
Expand Down
1 change: 0 additions & 1 deletion polars/polars-core/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub(crate) mod series;
use crate::prelude::*;
use crate::POOL;
pub use arrow;
pub use num_cpus;
pub use polars_arrow::utils::TrustMyLength;
pub use polars_arrow::utils::*;
pub use rayon;
Expand Down
1 change: 0 additions & 1 deletion polars/polars-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ lexical = { version = "6", optional = true, default-features = false, features =
memchr = "2.4"
memmap = { package = "memmap2", version = "0.5.2", optional = true }
num = "^0.4"
num_cpus = "1"
polars-arrow = { version = "0.20.0", path = "../polars-arrow" }
polars-core = { version = "0.20.0", path = "../polars-core", features = ["private"], default-features = false }
polars-utils = { version = "0.20.0", path = "../polars-utils", optional = true }
Expand Down

0 comments on commit 7b2b368

Please sign in to comment.