Skip to content

Commit

Permalink
Check if linux wheels work
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Feb 25, 2025
1 parent 5f450f4 commit e307934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
strategy:
matrix:
# os: [ubuntu-20.04, windows-2019, macos-11]
os: [macos-14]
# os: [ubuntu-20.04]
os: [ubuntu-20.04, macos-14]

steps:
- uses: actions/checkout@v3
Expand All @@ -58,7 +57,8 @@ jobs:
# Armadillo isn't available for i687 on Centos 7, making compilation more complicated
# # Musllinux doesn't use yum as its package manager
# CIBW_SKIP: pp*-macosx* *i686* *musllinux* *p36* *p37* *p38* pp*
CIBW_BUILD: cp310-macosx_arm64
# CIBW_BUILD: cp310-macosx_arm64
CIBW_BUILD: cp310-manylinux_x86_64
CIBW_BEFORE_ALL_LINUX: |
yum install -y lapack-devel gsl-devel armadillo-devel
curl -L -O https://archives.boost.io/release/1.72.0/source/boost_1_72_0.tar.gz
Expand All @@ -79,6 +79,7 @@ jobs:
# ln -s /usr/local/bin/g++-13 /usr/local/bin/g++
# CIBW_ENVIRONMENT_MACOS: CC='/usr/local/bin/gcc' LDSHARED='/usr/local/bin/gcc' CXX='/usr/local/bin/g++'
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=14.0 LDFLAGS='-L/opt/homebrew/lib' CPPFLAGS='-I/opt/homebrew/include -std=c++14 -Wno-c++11-narrowing'
CIBW_ENVIRONMENT_LINUX: CPPFLAGS='-std=c++11'
CIBW_BEFORE_ALL_WINDOWS: choco install -y lapack-devel
CIBW_TEST_COMMAND: >
python {project}/tests/check_installation.py
Expand Down
4 changes: 2 additions & 2 deletions swig/python-packaging/setup.in.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def run(self):
module = Extension('_titanlib',
sources=glob.glob('src/*.cpp') + glob.glob('src/*.c') + ['titanlibPYTHON_wrap.cxx'],
libraries=["gsl", "gslcblas"],
extra_compile_args="-O3 -fPIC -std=c++14".split() + args,
extra_link_args="-O3 -fPIC -std=c++14".split() + args,
extra_compile_args="-O3 -fPIC".split() + args,
extra_link_args="-O3 -fPIC".split() + args,
library_dirs=["/usr/lib64", "/usr/local/lib", "/usr/local/opt/armadillo/lib"],
include_dirs=['./include', np.get_include(), '/usr/local/opt/armadillo/include', "/usr/include", "/usr/local/include"]
)
Expand Down

0 comments on commit e307934

Please sign in to comment.