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:
175
175
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
176
176
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
177
177
178
- if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19' )
178
+ if ($packageVersion -gt [version]'0.2.13')
179
179
{
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})
182
182
}
183
183
184
184
- name : Build Wheel
Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ jobs:
170
170
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
171
171
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
172
172
173
- if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19' )
173
+ if ($packageVersion -gt [version]'0.2.13')
174
174
{
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})
177
177
}
178
178
179
179
- name : Build Wheel
You can’t perform that action at this time.
0 commit comments