Skip to content

Commit c9a8e55

Browse files
authored
Merge pull request #42 from LibrePCB/python-user-site-in-path
Windows: Add Python user site to PATH
2 parents eb856d8 + 9f639dd commit c9a8e55

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • windowsservercore-ltsc2019-qt5.15.2-32bit

windowsservercore-ltsc2019-qt5.15.2-32bit/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,6 @@ ADD OpenSSL.tar.bz2 C:/Qt/Tools
122122

123123
# Allow installing pip packages system-wide since there's no risk in a container
124124
ENV PIP_BREAK_SYSTEM_PACKAGES=1
125+
126+
# Put Python user site in PATH to allow installing packages with --user
127+
RUN FOR /F %i IN ('python -m site --user-base') DO setx PATH "%PATH%;%i\bin"

0 commit comments

Comments
 (0)