Skip to content

Commit f7e3e5a

Browse files
committed
Address review comments
Signed-off-by: Kemal Akkoyun <[email protected]>
1 parent 1365cd5 commit f7e3e5a

File tree

4 files changed

+14
-64
lines changed

4 files changed

+14
-64
lines changed

Cargo.lock

-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ path-slash = { version = "0.2.1" }
120120
pathdiff = { version = "0.2.1" }
121121
petgraph = { version = "0.6.5" }
122122
platform-info = { version = "2.0.3" }
123-
procfs = { version = "0.16.0" }
123+
procfs = { version = "0.16.0" , default-features = false, features = ["flate2"] }
124124
proc-macro2 = { version = "1.0.86" }
125125
pubgrub = { git = "https://github.com/astral-sh/pubgrub", rev = "388685a8711092971930986644cfed152d1a1f6c" }
126126
pyo3 = { version = "0.21.2" }

crates/uv-python/Cargo.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ futures = { workspace = true }
3636
goblin = { workspace = true }
3737
itertools = { workspace = true }
3838
owo-colors = { workspace = true }
39-
procfs = { workspace = true }
4039
regex = { workspace = true }
4140
reqwest = { workspace = true }
4241
reqwest-middleware = { workspace = true }
@@ -57,6 +56,9 @@ which = { workspace = true }
5756
[target.'cfg(any(unix, target_os = "wasi", target_os = "redox"))'.dependencies]
5857
rustix = { workspace = true }
5958

59+
[target.'cfg(target_os = "linux")'.dependencies]
60+
procfs = { workspace = true }
61+
6062
[target.'cfg(target_os = "windows")'.dependencies]
6163
windows-sys = { workspace = true }
6264
winsafe = { workspace = true }
@@ -70,4 +72,6 @@ indoc = { version = "2.0.5" }
7072
itertools = { version = "0.13.0" }
7173
temp-env = { version = "0.3.6" }
7274
tempfile = { version = "3.12.0" }
73-
test-log = { version = "0.2.16", features = ["trace"], default-features = false }
75+
test-log = { version = "0.2.16", features = [
76+
"trace"
77+
], default-features = false }

crates/uv-python/src/cpuinfo.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//! Fetches CPU information.
22
33
use anyhow::Error;
4+
#[cfg(target_os = "linux")]
45
use procfs::{CpuInfo, Current};
56

7+
#[cfg(target_os = "linux")]
68
pub(crate) fn detect_hardware_floating_point_support() -> Result<bool, Error> {
79
let cpu_info = CpuInfo::current()?;
810
for num in 0..cpu_info.num_cores() {
@@ -14,3 +16,8 @@ pub(crate) fn detect_hardware_floating_point_support() -> Result<bool, Error> {
1416
}
1517
Ok(false)
1618
}
19+
20+
#[cfg(not(target_os = "linux"))]
21+
pub(crate) fn detect_hardware_floating_point_support() -> Result<bool, Error> {
22+
Ok(false)
23+
}

0 commit comments

Comments
 (0)