Skip to content

Commit

Permalink
cibuildwheels...
Browse files Browse the repository at this point in the history
  • Loading branch information
vegardjervell committed Jun 27, 2024
1 parent 8252366 commit 0fb9167
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
if: runner.os == 'Windows'

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
uses: pypa/[email protected] # run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS: auto64
Expand All @@ -36,6 +36,10 @@ jobs:
CIBW_ENVIRONMENT_LINUX: CXXFLAGS='-fconcepts'
CIBW_BUILD_VERBOSITY_WINDOWS: 2
CIBW_SKIP: "*pypy* *pp* *cp36* *cp37* *musl*"
with:
package-dir: .
output-dir: "./wheelhouse"
config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ endif(NOT MSVC)

file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cpp/*.cpp)


project(pykingas)
set(TARGET KineticGas_r)
set(TARGET libpykingas)

# Add a library using FindPython's tooling (pybind11 also provides a helper like this)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/cpp/external/pybind11")
pybind11_add_module(${TARGET} ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/cpp/Integration/Integration.cpp)
pybind11_add_module(${TARGET} ${SOURCES} "${CMAKE_CURRENT_SOURCE_DIR}/cpp/Integration/Integration.cpp")

# The install directory is the output (wheel) directory
install(TARGETS ${TARGET} DESTINATION ${CMAKE_SOURCE_DIR}/pykingas)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ classifiers = [
test = ["pytest"]


# [tool.scikit-build]
# wheel.expand-macos-universal-tags = true
[tool.scikit-build]
wheel.expand-macos-universal-tags = true


[tool.cibuildwheel]
Expand Down

0 comments on commit 0fb9167

Please sign in to comment.