Skip to content
Permalink
Browse files
disble mac/windows and 32bit builds for speed, increase logging and v…
…erbosity
  • Loading branch information
jmalkin committed May 4, 2022
1 parent b72e156 commit 03e12d02079b96d8c46f72bc3e0babfa1e88bb4f
Showing 2 changed files with 17 additions and 11 deletions.
@@ -24,7 +24,7 @@ jobs:
python-version: '3.x'

- name: Build sdist
run: python setup.py sdist
run: python -m build --sdist

- uses: actions/upload-artifact@v2
with:
@@ -37,18 +37,18 @@ jobs:
fail-fast: false
matrix:
config:
- {
name: "MacOS 10.15",
os: macos-latest
}
#- {
# name: "MacOS 10.15",
# os: macos-latest
# }
- {
name: "Ubuntu Latest",
os: ubuntu-latest
}
- {
name: "Windows Latest",
os: windows-latest
}
#- {
# name: "Windows Latest",
# os: windows-latest
# }

steps:
- name: Checkout
@@ -65,7 +65,8 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_SKIP: "*-win32 pp*-macosx*"
CIBW_BUILD_VERBOSITY: -vvv
CIBW_SKIP: "*-win32 pp*-macosx* muslinux* *i686"
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"

- uses: actions/upload-artifact@v2
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.

find_package(Python COMPONENTS Interpreter Development)
message("Python version: " ${Python_VERSION})

# only Windows+MSVC seems to have trouble locating pybind11
if (MSVC)
execute_process(COMMAND cmd.exe /c ${CMAKE_CURRENT_SOURCE_DIR}/pybind11Path.cmd "${Python_EXECUTABLE}"
@@ -24,8 +27,10 @@ if (MSVC)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${EXTRA_PACKAGE_PATH})
endif()

set(PYBIND11_FINDPYTHON ON)
find_package(pybind11 CONFIG REQUIRED)
message("PYBIND11_PYTHON_VERSION: " ${PYBIND11_PYTHON_VERSION})
message("pybind11_INCLUDE_DIR: " ${pybind11_INCLUDE_DIR})
message("pybind11_INCLUDE_DIRS: " ${pybind11_INCLUDE_DIRS})

pybind11_add_module(python MODULE EXCLUDE_FROM_ALL THIN_LTO)

0 comments on commit 03e12d0

Please sign in to comment.