Skip to content

Commit dd6eb78

Browse files
committed
Merge branch 'QPR-13327' into 'master'
Resolve QPR-13327 Closes QPR-13327 See merge request qs/ore-github!64
2 parents 2cedefc + c0261d6 commit dd6eb78

8 files changed

Lines changed: 32 additions & 26 deletions

File tree

.github/workflows/build_macosx86.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
cd boost_1_84_0
2222
./bootstrap.sh
2323
./b2 toolset=clang-darwin target-os=darwin architecture=x86 cxxflags="-arch x86_64" cflags="-arch x86_64" linkflags="-arch x86_64" abi=sysv binary-format=mach-o install
24+
- name: Install Swig
25+
run: |
26+
brew install swig
2427
- name: Build ORE CMake
2528
run: |
2629
mkdir build
@@ -32,7 +35,8 @@ jobs:
3235
run: |
3336
pwd
3437
python -m pip install setuptools
35-
cp ORE-SWIG/wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
38+
cp ORE-SWIG/Wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
39+
chmod +x ORE-SWIG/oreanalytics-config
3640
cd ORE-SWIG/OREAnalytics-SWIG/SWIG
3741
chmod +x oreanalytics.i
3842
cd ..
@@ -42,10 +46,10 @@ jobs:
4246
- name: Build Wheels
4347
uses: pypa/cibuildwheel@v2.22.0
4448
env:
45-
CIBW_SKIP: cp36-*
49+
CIBW_SKIP: cp36-* pp*
4650
CIBW_ARCHS_MACOS: x86_64
4751
MACOSX_DEPLOYMENT_TARGET: "13.7"
48-
CXXFLAGS: -std=c++17 -g0 -O3 -mmacosx-version-min=13
52+
CXXFLAGS: -std=c++17 -g0 -O3 -mmacosx-version-min=13.7
4953
CIBW_BUILD_VERBOSITY: 2
5054
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
5155
DYLD_LIBRARY_PATH=/usr/local/lib delocate-listdeps {wheel} &&

.github/workflows/build_windows.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ jobs:
7272
SET Eigen3_DIR=C:\local\eigen-3.4.0
7373
mkdir build
7474
cd build
75-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.2 || exit 1
76-
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_BUILD_DOC=false -DORE_BUILD_SWIG=false -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlib.lib -DBOOST_INCLUDEDIR=C:\local\boost -DBOOST_LIBRARYDIR=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3 -L
77-
cmake --build . -j 2 --verbose
75+
cmake -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_SWIG=false -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=OFF -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DCMAKE_BUILD_TYPE=Release -DMSVC_LINK_DYNAMIC_RUNTIME=OFF -DORE_USE_ZLIB=ON -DQL_ENABLE_SESSIONS=ON -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlibstatic.lib -DZLIB_INCLUDE_DIR=C:\local\zlib-1.3.1 -G "Visual Studio 17 2022" -A ${{ matrix.platform }} ..
76+
cmake --build . --config Release --verbose
7877
- name: Wrap ORE-SWIG for Python Wheels
7978
run: |
8079
SET BOOST=C:\local\boost

.github/workflows/linux_manylinux_wheels_01.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ jobs:
4141
run: |
4242
pwd
4343
cp ORE-SWIG/Wheels/oreanalytics-config.linux ORE-SWIG/oreanalytics-config
44+
chmod +x ORE-SWIG/oreanalytics-config
4445
cd ORE-SWIG/Wheels
4546
chmod +x before_all_linux.sh
4647
- name: Build ORE wheels
4748
uses: pypa/cibuildwheel@v2.22.0
4849
env:
49-
CIBW_BUILD: "*-manylinux*"
50+
CIBW_BUILD: "*-manylinux_x86_64"
5051
CIBW_SKIP: cp*
5152
#CIBW_BUILD: cp37-manylinux_x86_64
5253
#CIBW_BUILD: cp38-manylinux_x86_64

.github/workflows/linux_manylinux_wheels_02.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ jobs:
4747
run: |
4848
pwd
4949
cp ORE-SWIG/Wheels/oreanalytics-config.linux ORE-SWIG/oreanalytics-config
50+
chmod +x ORE-SWIG/oreanalytics-config
5051
cd ORE-SWIG/Wheels
5152
chmod +x before_all_linux.sh
5253
- name: Build ORE wheels
5354
uses: pypa/cibuildwheel@v2.22.0
5455
env:
55-
#CIBW_BUILD: "*-manylinux*"
56+
CIBW_BUILD: "*-manylinux_x86_64"
5657
CIBW_SKIP: cp36-* pp*
5758
#CIBW_BUILD: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64
5859
#CIBW_BUILD: cp37-manylinux_x86_64

.github/workflows/macos_ARM64_build.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,28 @@ jobs:
2424
cd boost_1_84_0
2525
sudo ./bootstrap.sh
2626
sudo ./b2 architecture=arm address-model=64 -s NO_LZMA=1 -s NO_ZSTD=1 abi=aapcs install
27+
- name: Install Swig
28+
run: |
29+
sudo brew install swig
2730
- name: cmake configure and build
2831
run: |
2932
mkdir build
3033
cd build
31-
cmake .. -DCMAKE_OSX_ARCHITECTURES=arm64 -DORE_USE_ZLIB=ON -DORE_BUILD_SWIG=OFF -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=ON -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DQL_ENABLE_SESSIONS=ON -DCMAKE_BUILD_TYPE=Release ..
32-
cmake --build . -j4
33-
cmake --install .
34+
sudo cmake .. -DCMAKE_OSX_ARCHITECTURES=arm64 -DORE_USE_ZLIB=ON -DORE_BUILD_SWIG=OFF -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=ON -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DQL_ENABLE_SESSIONS=ON -DCMAKE_BUILD_TYPE=Release ..
35+
sudo cmake --build . -j4
36+
sudo cmake --install .
3437
- name: Wrap ORE-SWIG for Python Wheels
3538
run: |
3639
pwd
3740
cd ORE-SWIG
38-
python -m pip install setuptools
39-
cp ORE-SWIG/wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
40-
cd ORE-SWIG/OREAnalytics-SWIG
41+
sudo python -m pip install setuptools
42+
cp Wheels/oreanalytics-config.macos oreanalytics-config
43+
chmod +x oreanalytics-config
44+
cd OREAnalytics-SWIG
4145
ls -al
4246
cd SWIG
4347
ls -al
44-
chmod +x oreanalytics.i
48+
sudo chmod +x oreanalytics.i
4549
cd ..
4650
cd ..
4751
ls -al

ORE-SWIG/Wheels/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# ore-wheels
22

33
| | macOS Intel | macOS Apple Silicon | Windows 64bit | manylinux x86_64 |
4-
|----------------|----|-----|-----|-----|----|
4+
|----------------|----|-----|-----|-----|
55
| CPython 3.7 || N/A | N/A ||
66
| CPython 3.8 |||||
77
| CPython 3.9 |||||
88
| CPython 3.10 |||||
99
| CPython 3.11 |||||
1010
| CPython 3.12 |||||
11-
| PyPy 3.7 v7.3 || N/A || N/A |
12-
| PyPy 3.8 v7.3 || N/A || N/A |
13-
| PyPy 3.9 v7.3 || N/A || N/A |
14-
| PyPy 3.10 v7.3 || N/A || N/A |
15-
16-
<sup>¹ PyPy is only supported for manylinux wheels, not musllinux.</sup><br>
11+
| PyPy 3.7 v7.3 | N/A | N/A || N/A |
12+
| PyPy 3.8 v7.3 | N/A | N/A || N/A |
13+
| PyPy 3.9 v7.3 | N/A | N/A || N/A |
14+
| PyPy 3.10 v7.3 | N/A | N/A || N/A |

ORE-SWIG/Wheels/before_all_linux.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ echo "XYZ END unpack boost"
4444
echo "XYZ BEGIN build ORE"
4545
pwd
4646
ls
47-
cd ORE
4847
mkdir build
4948
cd build
5049
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DORE_USE_ZLIB=ON -DORE_BUILD_SWIG=OFF -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=OFF -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DQL_ENABLE_SESSIONS=ON -DCMAKE_BUILD_TYPE=Release ..
@@ -56,6 +55,6 @@ echo "XYZ END build ORE"
5655
echo "XYZ BEGIN wrap oreswig"
5756
pwd
5857
ls
59-
cd ORE/ORE-SWIG
58+
cd ORE-SWIG
6059
python setup.py wrap
6160

ORE-SWIG/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def finalize_options(self):
208208

209209
elif compiler == 'unix':
210210
ql_compile_args = \
211-
os.popen('../oreanalytics-config --cflags').read()[:-1].split()
211+
os.popen('./oreanalytics-config --cflags').read()[:-1].split()
212212
ql_link_args = \
213-
os.popen('../oreanalytics-config --libs').read()[:-1].split()
213+
os.popen('./oreanalytics-config --libs').read()[:-1].split()
214214

215215
self.define += [ (arg[2:],None) for arg in ql_compile_args
216216
if arg.startswith('-D') ]

0 commit comments

Comments
 (0)