-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (61 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (61 loc) · 1.89 KB
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
[build-system]
requires = ["scikit-build-core", "numpy", "cython"]
build-backend = "scikit_build_core.build"
# Metainfo and requirements
# Reference: https://pypi.org/classifiers
[project]
name = "tbplas"
version = "1.6.0"
description = "Tight-binding Package for Large-scale Simulation"
authors = [
{name = "Yunhai Li", email = "liyunhai1016@whu.edu.cn"},
{name = "Shengjun Yuan", email = "s.yuan@whu.edu.cn"},
]
urls = {homepage = "http://www.tbplas.net"}
license = {text = "BSD-3-Clause"}
readme = "README.rst"
keywords = [
"condensed matter physics",
"tight-binding model",
"large-scale simulation"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Matplotlib",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Cython",
"Programming Language :: Fortran",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.7"
dependencies = ["numpy", "scipy", "matplotlib", "cython"]
[project.optional-dependencies]
lammps = ["ase"]
mpi = ["mpi4py"]
# Build options
[tool.scikit-build]
minimum-version = "0.6"
ninja.minimum-version = "1.10"
cmake.minimum-version = "3.17"
cmake.build-type = "Release"
cmake.verbose = true
logging.level = "INFO"
build-dir = "build"
wheel.packages = ["tbplas"]
wheel.exclude = ["**.pyx", "**.F90", "**.f90", "**.h"]
[tool.scikit-build.cmake.define]
USE_INDEX64 = "OFF"
USE_MKL = "OFF"
# GCC
CMAKE_C_COMPILER = "gcc"
CMAKE_Fortran_COMPILER = "gfortran"
CMAKE_C_FLAGS = "-march=native -mtune=native"
CMAKE_Fortran_FLAGS = "-cpp -march=native -mtune=native -fopenmp -fno-second-underscore"
## Intel
#CMAKE_C_COMPILER = "icx"
#CMAKE_Fortran_COMPILER = "ifx"
#CMAKE_C_FLAGS = "-xHost"
#CMAKE_Fortran_FLAGS = "-fpp -xHost -qopenmp -ipo -heap-arrays 32"