Skip to content

Commit 6199620

Browse files
committed
win: refactor
1 parent 8ab8a0c commit 6199620

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

quaddtype/pyproject.toml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,17 @@ repair-wheel-command = "delocate-wheel -w {dest_dir} -v {wheel}"
8383

8484
[tool.cibuildwheel.windows]
8585
before-all = '''
86-
"C:\Program Files\PowerShell\7\pwsh.EXE" -command "& {Invoke-WebRequest -Uri 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe' -OutFile 'miniconda.exe'}"
87-
Start-Process -FilePath 'miniconda.exe' -ArgumentList '/S','/D=$env:UserProfile\\Miniconda3' -Wait
88-
$env:PATH = '$env:UserProfile\\Miniconda3;$env:UserProfile\\Miniconda3\\Scripts;$env:UserProfile\\Miniconda3\\Library\\bin;$env:PATH
89-
$env:UserProfile\\Miniconda3\\Scripts\\activate.ps1
90-
conda config --add channels conda-forge
91-
conda config --set channel_priority strict
92-
conda install -y -c conda-forge sleef
86+
"C:\\Program Files\\PowerShell\\7\\pwsh.EXE" -Command "& {
87+
Invoke-WebRequest -Uri 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe' -OutFile 'miniconda.exe'
88+
Start-Process -FilePath 'miniconda.exe' -ArgumentList '/S','/D=$env:UserProfile\\Miniconda3' -Wait
89+
$env:PATH = '$env:UserProfile\\Miniconda3;$env:UserProfile\\Miniconda3\\Scripts;$env:UserProfile\\Miniconda3\\Library\\bin;' + $env:PATH
90+
& $env:UserProfile\\Miniconda3\\Scripts\\activate.ps1
91+
conda config --add channels conda-forge
92+
conda config --set channel_priority strict
93+
conda install -y -c conda-forge sleef
94+
Write-Host 'PATH:' $env:PATH
95+
Get-Command python | Format-List
96+
}"
9397
'''
9498
before-build = "pip install delvewheel"
9599
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel} --add-path %UserProfile%\\Miniconda3\\Library\\bin"

0 commit comments

Comments
 (0)