mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
feat(rio): rio_v2 is compatible with minio for storing data. (#3115)
* Set up a compatibility layer for replacing old Rio components with new ones. * fix(rio). compress range * feat(rio). Add the experimental feature rio_v2 to support minio data at the binary level. * feat(rio_v2): add sse-c test * test compression component * simple fix * fix minlz encode * fix metadata * fix kms key cache error * Update launch.json * ci: set nix crate download user agent * fix: gate obs pyroscope backend * ignore minio test * fix encrypt check * fix * fix * fix * Update object_usecase.rs * Update ci.yml * fix * ci add rio-v2 test * fix * ci fix * fix * Reconstructed into a more reasonable compatibility mode * fix * fix --------- Signed-off-by: houseme <housemecn@gmail.com> Signed-off-by: 唐小鸭 <tangtang1251@qq.com> Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: cxymds <Cxymds@qq.com> Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
@@ -23,6 +23,12 @@ export no_proxy="${NO_PROXY}"
|
||||
# Ensure user-level Python scripts are discoverable (awscurl/tox installed via --user)
|
||||
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" 2>/dev/null || echo "3.14")
|
||||
export PATH="$HOME/Library/Python/${PYTHON_VERSION}/bin:$HOME/.local/bin:$PATH"
|
||||
if command -v uv >/dev/null 2>&1; then
|
||||
UV_TOOL_BIN="$(uv tool dir --bin 2>/dev/null || true)"
|
||||
if [ -n "${UV_TOOL_BIN}" ]; then
|
||||
export PATH="${UV_TOOL_BIN}:$PATH"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
S3_ACCESS_KEY="${S3_ACCESS_KEY:-rustfsadmin}"
|
||||
@@ -712,6 +718,17 @@ install_python_package() {
|
||||
local package=$1
|
||||
local error_output
|
||||
|
||||
if command -v uv >/dev/null 2>&1; then
|
||||
if uv tool install --upgrade "${package}"; then
|
||||
UV_TOOL_BIN="$(uv tool dir --bin 2>/dev/null || true)"
|
||||
if [ -n "${UV_TOOL_BIN}" ]; then
|
||||
export PATH="${UV_TOOL_BIN}:$PATH"
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
log_warn "Failed to install ${package} with uv, falling back to python3 -m pip"
|
||||
fi
|
||||
|
||||
# Try --user first (works on most Linux systems)
|
||||
error_output=$(python3 -m pip install --user --upgrade pip "${package}" 2>&1)
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user