-
Notifications
You must be signed in to change notification settings - Fork 208
/
pyproject.toml
55 lines (50 loc) · 1.8 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[build-system]
requires = ["setuptools>=42,<72", "swig>=4.2,<4.3", "wheel"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
skip = "pp* cp36-* cp37-* cp38-*"
build-verbosity = "0"
test-requires = "pytest numpy"
[tool.cibuildwheel.windows]
archs = "AMD64"
build = "cp39-win_*"
before-all = 'echo "Building: %CIBW_BUILD%"'
test-command = [
'''
pytest {project}/tests/genicam_tests {project}/tests/pylon_tests/emulated {project}/tests/pylondataprocessing_tests
'''
]
[tool.cibuildwheel.macos]
archs = "x86_64 arm64"
build = "cp39-macosx_*"
before-all = 'echo "Building: $CIBW_BUILD"'
repair-wheel-command = ""
test-command = [
'''
pytest {project}/tests/genicam_tests {project}/tests/pylon_tests/emulated
'''
]
[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
before-build = [
'''
echo "arm framework"
if [ -z "${PYLON_FRAMEWORK_ARM64}" ]; then
echo "Set PYLON_FRAMEWORK_ARM64 to the directory where pylon.framework for arm64 is installed"
exit -1
fi
'''
]
environment = { PYLON_FRAMEWORK_LOCATION="${PYLON_FRAMEWORK_ARM64}",MACOSX_DEPLOYMENT_TARGET="11.0" }
[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
before-build = [
'''
echo "intel framework"
if [ -z "${PYLON_FRAMEWORK_X86_64}" ]; then
echo "Set PYLON_FRAMEWORK_X86_64 to the directory where pylon.framework for x86_64 is installed"
echo "default of /Library/Frameworks will be used"
fi
'''
]
environment = { SYSTEM_VERSION_COMPAT="0",PYLON_FRAMEWORK_LOCATION="${PYLON_FRAMEWORK_X86_64}",MACOSX_DEPLOYMENT_TARGET="11.0" }