-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
66 lines (59 loc) · 1.53 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
56
57
58
59
60
61
62
63
64
65
66
# SPDX-FileCopyrightText: 2024 The Naja authors </~https://github.com/najaeda/naja/blob/main/AUTHORS>
#
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["scikit-build-core >=0.4.3"]
build-backend = "scikit_build_core.build"
[project]
name = "najaeda"
version = "0.1.17"
description = "Naja EDA Python package"
authors = [{name = "Naja Authors", email = "contact@keplertech.io"}]
readme = "src/najaeda/README.rst"
requires-python = ">=3.8"
license = {text = "Apache License 2.0"}
[tool.scikit-build.cmake.define]
CMAKE_BUILD_TYPE="Release"
BUILD_NAJA_PYTHON="ON"
[project.urls]
Homepage = "/~https://github.com/najaeda/naja"
[tool.cibuildwheel]
build-verbosity = 1
[tool.cibuildwheel.macos]
build-frontend = "build"
before-build = "rm -rf build dist"
before-all = '''
curl -O https://capnproto.org/capnproto-c++-1.1.0.tar.gz
tar zxf capnproto-c++-1.1.0.tar.gz
cd capnproto-c++-1.1.0
./configure
make -j6 check
sudo make install
cd ..
'''
[tool.cibuildwheel.linux]
build-frontend = "build"
before-all = '''
yum -y install wget boost-devel flex
wget /~https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
tar -xvzf flex-2.6.4.tar.gz
cd flex-2.6.4
./configure
make
make install
cd ..
wget http://ftp.gnu.org/gnu/bison/bison-3.8.tar.gz
tar -xvzf bison-3.8.tar.gz
cd bison-3.8
./configure
make
make install
cd ..
curl -O https://capnproto.org/capnproto-c++-1.1.0.tar.gz
tar zxf capnproto-c++-1.1.0.tar.gz
cd capnproto-c++-1.1.0
./configure
make -j6 check
make install
cd ..
'''