File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,10 @@ jobs:
175175 New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
176176 New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
177177
178- if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19' )
178+ if ($packageVersion -gt [version]'0.2.13')
179179 {
180- $pyScripts = (dir '.\ llama_cpp_cuda\ *.py')
181- $pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
180+ $pyScripts = (Get-ChildItem $(Join-Path '.' ' llama_cpp_cuda' ' *.py') )
181+ $pyScripts.fullname.foreach({New-Item $_ -itemType File -value (Get-Content $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
182182 }
183183
184184 - name : Build Wheel
Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ jobs:
170170 New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
171171 New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
172172
173- if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19' )
173+ if ($packageVersion -gt [version]'0.2.13')
174174 {
175- $pyScripts = (dir '.\ llama_cpp_cuda\ *.py')
176- $pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
175+ $pyScripts = (Get-ChildItem $(Join-Path '.' ' llama_cpp_cuda' ' *.py') )
176+ $pyScripts.fullname.foreach({New-Item $_ -itemType File -value (Get-Content $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
177177 }
178178
179179 - name : Build Wheel
You can’t perform that action at this time.
0 commit comments