Skip to content

Commit a92c65a

Browse files
committed
using the right wheels #3
1 parent 7c07c43 commit a92c65a

1 file changed

Lines changed: 30 additions & 10 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,6 @@ jobs:
152152
with:
153153
python-version: ${{ matrix.python_version }}
154154

155-
- name: Installing dependencies
156-
if: matrix.os == 'macos-14' || matrix.os == 'macos-15'
157-
# we just need proj.db
158-
run: brew update && brew install proj
159-
160155
- name: Preparing Python environment
161156
shell: bash
162157
run: |
@@ -165,11 +160,37 @@ jobs:
165160
python -m pip install --upgrade pip
166161
python -m pip install wheel # need to do this separately because the texttest install wants it
167162
python -m pip install texttest
163+
164+
- name: Installing dependencies (linux / windows)
165+
if: ${{ !startsWith(matrix.os, 'macos') }}
166+
# we just need proj.db
167+
run: |
168+
source testenv/bin/activate
168169
python -m pip install pyproj
169170
python -c "import pyproj; print('PROJ_LIB=' + pyproj.datadir.get_data_dir())" >> $GITHUB_ENV
171+
172+
- name: Installing dependencies (macos)
173+
if: ${{ startsWith(matrix.os, 'macos') }}
174+
# we just need proj.db, the pyproj hack does not seem to work on mac
175+
run: brew update && brew install proj
176+
177+
- name: Installing sumo wheels (macos / windows)
178+
if: ${{ !startsWith(matrix.os, 'ubuntu') }}
179+
shell: bash
180+
run: |
181+
source testenv/bin/activate
170182
python -m pip install --no-index -f python-wheels eclipse_sumo
171183
python -c "import sumo; print('SUMO_HOME=' + sumo.SUMO_HOME)" >> $GITHUB_ENV
172184
185+
- name: Installing sumo wheels (linux)
186+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
187+
shell: bash
188+
run: |
189+
ls python-wheels
190+
WHEEL=$(ls python-wheels/eclipse_sumo*${{ matrix.manylinux }}*$(uname -m).whl)
191+
echo wheel=$WHEEL
192+
python -m pip install $WHEEL
193+
173194
- name: Running "sumo in the wheel" tests without full dependencies
174195
shell: bash
175196
run: |
@@ -184,18 +205,17 @@ jobs:
184205
tests/runTests.sh -b ci -v ci.fast -a complex,sumo,tools,traci
185206
rm -rf testenv
186207
187-
- name: Installing libsumo wheels (mac / windows)
188-
if: ! startsWith(matrix.os, 'ubuntu')
208+
- name: Installing libsumo wheels (macos / windows)
209+
if: ${{ !startsWith(matrix.os, 'ubuntu') }}
189210
shell: bash
190211
run: python -m pip install --no-index -f python-wheels libsumo
191212

192213
- name: Installing libsumo wheels (linux)
193-
if: startsWith(matrix.os, 'ubuntu')
214+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
194215
shell: bash
195216
run: |
196-
ls python-wheels
197217
PYTAG="${{ matrix.python_version }}"
198-
WHEEL=$(ls python-wheels/libsumo*cp${PYTAG/.}-*${{ matrix.manylinux }}*.whl)
218+
WHEEL=$(ls python-wheels/libsumo*cp${PYTAG/.}-*${{ matrix.manylinux }}*$(uname -m).whl)
199219
echo wheel=$WHEEL
200220
python -m pip install $WHEEL
201221

0 commit comments

Comments
 (0)