mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Use relative path for lib64 symlink (#4268)
## Summary Closes https://github.com/astral-sh/uv/issues/4265. ## Test Plan ``` ❯ ls -l .venv total 16 -rw-r--r-- 1 crmarsh staff 43 Jun 12 09:23 CACHEDIR.TAG drwxr-xr-x 14 crmarsh staff 448 Jun 12 09:23 bin drwxr-xr-x 3 crmarsh staff 96 Jun 12 09:23 lib lrwxr-xr-x 1 crmarsh staff 3 Jun 12 09:23 lib64 -> lib -rw-r--r-- 1 crmarsh staff 174 Jun 12 09:23 pyvenv.cfg ``` ``` ❯ ls .venv/lib64/ python3.12 ```
This commit is contained in:
parent
034b4790ea
commit
5e7b98d3e7
1 changed files with 1 additions and 3 deletions
|
@ -274,9 +274,7 @@ pub fn create_bare_venv(
|
|||
&& interpreter.markers().os_name() == "posix"
|
||||
&& interpreter.markers().sys_platform() != "darwin"
|
||||
{
|
||||
let lib64 = location.join("lib64");
|
||||
let lib = location.join("lib");
|
||||
match std::os::unix::fs::symlink(lib, lib64) {
|
||||
match std::os::unix::fs::symlink("lib", location.join("lib64")) {
|
||||
Ok(()) => {}
|
||||
Err(err) if err.kind() == io::ErrorKind::AlreadyExists => {}
|
||||
Err(err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue