Skip to content

Commit

Permalink
Split into two packages (devel as extra package)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhochsteger committed Jun 20, 2024
1 parent 36aced0 commit a9c9beb
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build wheels
- name: Build runtime package
uses: pypa/[email protected]

- name: Replace pyproject.toml with pyproject_devel.toml
run: cp pyproject_devel.toml pyproject.toml

- name: Build devel package
uses: pypa/[email protected]

- uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "netgen_occt"
version = "0.0.6"
version = "0.0.7"
description = "Open CASCADE Technology libraries, used by Netgen Mesher"
readme = {file = "README.txt", content-type = "text/plain"}
requires-python = ">=3.8"
Expand All @@ -16,7 +16,7 @@ build-backend = "scikit_build_core.build"
wheel.py-api = "py3"
experimental = true
wheel.install-dir = "/data"
wheel.exclude = ["*[a-zA-Z].dylib", "**.so", "share"]
wheel.exclude = ["*[a-zA-Z].dylib", "**.so", "share", "*.lib", "include", "*.cmake", "bin/*.sh"]
install.strip = true
cmake.build-type = "Release"
# build-dir = "build_py/{wheel_tag}" # build debugging - set a build-directly
Expand Down
69 changes: 69 additions & 0 deletions pyproject_devel.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[project]
name = "netgen_occt_devel"
version = "0.0.7"
description = "Open CASCADE Technology libraries, used by Netgen Mesher (development files)"
readme = {file = "README.txt", content-type = "text/plain"}
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)"
]

[build-system]
requires = ["scikit-build-core>=0.3.3", "cmake"]
build-backend = "scikit_build_core.build"

[tool.scikit-build]
wheel.py-api = "py3"
experimental = true
wheel.install-dir = "/data"
wheel.exclude = ["*.dylib", "*.so", "*.dll", "share", "*.cmake", "bin"]
install.strip = true
cmake.build-type = "Release"
# build-dir = "build_py/{wheel_tag}" # build debugging - set a build-directly

[tool.scikit-build.cmake.define]
BUILD_LIBRARY_TYPE="Shared"
BUILD_SOVERSION_NUMBERS="3"
BUILD_MODULE_FoundationClasses="ON"
BUILD_MODULE_ModelingData="ON"
BUILD_MODULE_ModelingAlgorithms="ON"
BUILD_MODULE_DataExchange="ON"
BUILD_MODULE_Visualization="OFF"
BUILD_MODULE_ApplicationFramework="OFF"
BUILD_MODULE_Draw="OFF"
BUILD_MODULE_DETools="OFF"
USE_FREETYPE="OFF"
USE_OPENGL="OFF"
USE_XLIB="OFF"
BUILD_DOC_Overview="OFF"
INSTALL_DIR_BIN="bin"
INSTALL_DIR_SCRIPT="bin"
INSTALL_DIR_LIB="lib"
INSTALL_DIR_INCLUDE="include/opencascade"
INSTALL_DIR_RESOURCE="share/opencascade/resources"
INSTALL_DIR_DOC="share"
INSTALL_DIR_DATA="share/opencascade/data"
INSTALL_DIR_SAMPLES="share/opencascade/samples"
INSTALL_DIR_TESTS="share/opencascade/tests"
INSTALL_DIR_CMAKE="lib/cmake/opencascade"
INSTALL_DIR_LAYOUT="Unix"

[project.optional-dependencies]
test = ["pytest"]

[tool.cibuildwheel]
build = "cp312-*"
skip = """
pp*
*_i686
*musllinux*
*win32
"""

[tool.cibuildwheel.linux]
repair-wheel-command = "mv {wheel} {dest_dir} && rename linux_x86_64 manylinux_2_17_x86_64.manylinux2014_x86_64 {dest_dir}/*-linux_x86_64*.whl"

[tool.cibuildwheel.macos]
environment = {MACOSX_DEPLOYMENT_TARGET=10.15}
repair-wheel-command = ""
archs = ["native"]

0 comments on commit a9c9beb

Please sign in to comment.