forked from Open-Cascade-SAS/OCCT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into two packages (devel as extra package)
- Loading branch information
1 parent
36aced0
commit a9c9beb
Showing
3 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |