Skip to content

Commit 94daf4a

Browse files
HADOOP-19476. Create python3 symlink needed for mvnsite (#7452)
* 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.
1 parent 1c2a92a commit 94daf4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev-support/docker/Dockerfile_windows_10

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ RUN setx PATH "%PATH%;C:\Maven\apache-maven-3.8.8\bin"
147147
RUN setx PATH "%PATH%;C:\CMake\cmake-3.19.0-win64-x64\bin"
148148
RUN setx PATH "%PATH%;C:\ZStd"
149149
RUN setx PATH "%PATH%;C:\Program Files\Git\usr\bin"
150+
RUN setx PATH "%PATH%;C:\Python"
151+
152+
# The mvnsite module runs a bash script and somewhere down in the invocation, it resorts to call
153+
# /usr/bin/env python3. Thus, we need to create the following symbolic link to satisfy this need.
154+
RUN powershell New-Item -ItemType SymbolicLink -Path "C:\Python\python3" -Target "C:\Python\python.exe"
150155

151156
# We get strange Javadoc errors without this.
152157
RUN setx classpath ""

0 commit comments

Comments
 (0)