Skip to content

Commit 7756dfb

Browse files
author
t-swsingh_microsoft
committed
fixing setup
1 parent 97d459d commit 7756dfb

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/build_wheels.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,24 @@ jobs:
2929
python-version: '3.10'
3030
architecture: ${{ matrix.architecture }}
3131

32-
- name: Install Miniconda
33-
uses: conda-incubator/setup-miniconda@v3
34-
with:
35-
auto-update-conda: true
36-
python-version: '3.10'
37-
architecture: ${{ matrix.architecture }}
32+
- name: Install CMake
33+
uses: lukka/get-cmake@latest
3834

39-
- name: Install SLEEF and other dependencies
40-
shell: bash -l {0}
35+
- name: Clone and Build SLEEF
36+
shell: pwsh
4137
run: |
42-
conda config --add channels conda-forge
43-
conda config --set channel_priority strict
44-
conda install -y sleef numpy
38+
git clone https://github.com/shibatch/sleef.git
39+
cd sleef
40+
cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.architecture == 'x86' && 'Win32' || 'x64' }} -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
41+
cmake --build build --config Release --parallel
42+
cmake --install build --prefix "C:/sleef" --config Release
4543
4644
- name: Setup build environment
4745
shell: pwsh
4846
run: |
49-
$env:INCLUDE += ";$env:CONDA_PREFIX\Library\include"
50-
$env:LIB += ";$env:CONDA_PREFIX\Library\lib"
51-
$env:PATH = "$env:CONDA_PREFIX\Library\bin;$env:PATH"
47+
$env:INCLUDE += ";C:\sleef\include"
48+
$env:LIB += ";C:\sleef\lib"
49+
$env:PATH = "C:\sleef\bin;$env:PATH"
5250
echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
5351
echo "LIB=$env:LIB" >> $env:GITHUB_ENV
5452
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
@@ -69,7 +67,7 @@ jobs:
6967
MSSdk: '1'
7068
CIBW_BEFORE_BUILD: |
7169
pip install meson meson-python ninja numpy
72-
CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel}'
70+
CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin'
7371
CIBW_TEST_COMMAND: |
7472
pip install {package}[test]
7573
python -m pytest -v {project}/test

0 commit comments

Comments
 (0)