-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create lib64 symlink for 64-bit, non-macOS, POSIX environments (#3584)
## Summary Closes #3578 (comment). ## Test Plan Verified that in the OpenSUSE test, we create both, and they're symlinks: ```text INFO: Creating virtual environment with `venv`... INFO: Installing into `venv` virtual environment... DEBUG Found a virtualenv named .venv at: /tmp/tmp4nape29h/.venv DEBUG Cached interpreter info for Python 3.10.14, skipping probing: .venv/bin/python DEBUG Using Python 3.10.14 environment at .venv/bin/python DEBUG Trying to lock if free: .venv/.lock purelib: "/tmp/tmp4nape29h/.venv/lib/python3.10/site-packages" platlib: "/tmp/tmp4nape29h/.venv/lib64/python3.10/site-packages" is_same_file(purelib, platlib): Ok(true) ```
- Loading branch information
1 parent
e64c337
commit 30a7475
Showing
5 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Copy, Clone, Serialize, Deserialize)] | ||
pub enum PointerSize { | ||
/// 32-bit architecture. | ||
#[serde(rename = "32")] | ||
_32, | ||
/// 64-bit architecture. | ||
#[serde(rename = "64")] | ||
_64, | ||
} | ||
|
||
impl PointerSize { | ||
pub const fn is_32(self) -> bool { | ||
matches!(self, Self::_32) | ||
} | ||
|
||
pub const fn is_64(self) -> bool { | ||
matches!(self, Self::_64) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters