Skip to content

Commit fb903d6

Browse files
authored
fix: add PATH to uv installation command (#90)
* chore: Add build-essential package to local dockerfile * fix: add PATH to uv installation
1 parent 8ab1e2a commit fb903d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/local.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ WORKDIR /app
3333
ARG PLATFORM=local
3434

3535
# Install python3.12 if PLATFORM is local
36-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl python3.12 python3.12-venv python3.12-dev python3-pip ffmpeg \
36+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl python3.12 python3.12-venv python3.12-dev python3-pip ffmpeg build-essential \
3737
&& apt-get clean \
3838
&& rm -rf /var/lib/apt/lists/* \
3939
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1;

internal/core/plugin_manager/local_runtime/environment_python.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (p *LocalPluginRuntime) InitPythonEnvironment() error {
128128

129129
virtualEnvPath := path.Join(p.State.WorkingPath, ".venv")
130130
cmd = exec.CommandContext(ctx, uvPath, args...)
131-
cmd.Env = append(cmd.Env, "VIRTUAL_ENV="+virtualEnvPath)
131+
cmd.Env = append(cmd.Env, "VIRTUAL_ENV="+virtualEnvPath, "PATH="+os.Getenv("PATH"))
132132
cmd.Dir = p.State.WorkingPath
133133

134134
// get stdout and stderr

0 commit comments

Comments
 (0)