File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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} &&
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 |
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ echo "XYZ END unpack boost"
4444echo " XYZ BEGIN build ORE"
4545pwd
4646ls
47- cd ORE
4847mkdir build
4948cd build
5049cmake -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"
5655echo " XYZ BEGIN wrap oreswig"
5756pwd
5857ls
59- cd ORE/ORE -SWIG
58+ cd ORE-SWIG
6059python setup.py wrap
6160
Original file line number Diff line number Diff 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' ) ]
You can’t perform that action at this time.
0 commit comments