Skip to content

Commit

Permalink
HADOOP-19476. Create python3 symlink needed for mvnsite (#7452)
Browse files Browse the repository at this point in the history
* The mvnsite compilation step needs python3.
  Although we're installing python3 in the build
  environment, the python3 executable is missing.
* Thus, we need to create a symbolic link python3
  pointing to python.exe needed for mvnsite.
  • Loading branch information
GauthamBanasandra authored Mar 3, 2025
1 parent 1c2a92a commit 94daf4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-support/docker/Dockerfile_windows_10
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ RUN setx PATH "%PATH%;C:\Maven\apache-maven-3.8.8\bin"
RUN setx PATH "%PATH%;C:\CMake\cmake-3.19.0-win64-x64\bin"
RUN setx PATH "%PATH%;C:\ZStd"
RUN setx PATH "%PATH%;C:\Program Files\Git\usr\bin"
RUN setx PATH "%PATH%;C:\Python"

# The mvnsite module runs a bash script and somewhere down in the invocation, it resorts to call
# /usr/bin/env python3. Thus, we need to create the following symbolic link to satisfy this need.
RUN powershell New-Item -ItemType SymbolicLink -Path "C:\Python\python3" -Target "C:\Python\python.exe"

# We get strange Javadoc errors without this.
RUN setx classpath ""
Expand Down

0 comments on commit 94daf4a

Please sign in to comment.