Skip to content

Commit 086b89a

Browse files
authored
Merge pull request #57 from OpenWaterAnalytics/dev
Linux wheel repair
2 parents c37aeb1 + 799a836 commit 086b89a

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
- name: Build wheel
3737
run: pip wheel --wheel-dir=./dist ./swmm-toolkit
3838

39+
- name: Repair wheel
40+
if: ${{ contains(matrix.os, 'ubuntu') }}
41+
run: |
42+
pip install auditwheel
43+
auditwheel repair ./dist/*-linux_x86_64.whl --plat "manylinux2014_x86_64" -w ./dist
44+
rm -rf ./dist/*-linux_x86_64.whl
45+
3946
- name: Test wheel
4047
run: |
4148
pip install pytest numpy

swmm-toolkit/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Michael Tryby <[email protected]> (public domain)
44
Jennifer Wu <[email protected]>
55
Caleb Buahin <[email protected]>
6+
Laurent Courty <[email protected]>

swmm-toolkit/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
cmake_minimum_required (VERSION 3.17)
1212

13-
project(swmm-toolkit)
13+
project(swmm-toolkit
14+
VERSION
15+
0.8.0
16+
)
1417

1518

1619
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})

swmm-toolkit/src/swmm/toolkit/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CMakeLists.txt - CMake configuration file for swmm.toolkit python package
33
#
44
# Created: Feb 6, 2020
5-
# Updated: May 6, 2020
5+
# Updated: Dec 29, 2020
66
#
77
# Author: See AUTHORS
88
#
@@ -27,7 +27,10 @@ else()
2727
set(LIB_ROOT "$ORIGIN")
2828
endif()
2929

30-
set(PACKAGE_RPATH "${LIB_ROOT}/../../../..;${LIB_ROOT}/../../../../extern;${LIB_ROOT}/../../../lib")
30+
# Inserting line continuation '\' in this long path string breaks wheel repair
31+
set(PACKAGE_RPATH
32+
"${LIB_ROOT}/../../../..;${LIB_ROOT}/../../../../extern;${LIB_ROOT}/../../../lib;${LIB_ROOT}/../../swmm_toolkit-${CMAKE_PROJECT_VERSION}.data/data/lib"
33+
)
3134

3235

3336
#############################################################

0 commit comments

Comments
 (0)