Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TetraX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Micromagnetic modeling
TetraX
Commits
803bbe6b
Commit
803bbe6b
authored
1 month ago
by
Kakay, Dr. Attila (FWIN) - 9524
Browse files
Options
Downloads
Patches
Plain Diff
setup.py deleted for testing toml.
parent
74420ea2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!88
Release of 2.0.0
,
!87
Replacing setup.py with pyproject.toml
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+0
-122
0 additions, 122 deletions
setup.py
with
0 additions
and
122 deletions
setup.py
deleted
100644 → 0
+
0
−
122
View file @
74420ea2
from
__future__
import
annotations
import
os
# import sys
import
platform
from
pathlib
import
Path
from
setuptools
import
Extension
,
dist
,
find_packages
,
setup
dist
.
Distribution
().
fetch_build_eggs
([
"
cython>=3.0.11
"
,
"
numpy>=2.1.3
"
])
import
numpy
as
np
from
Cython.Build
import
cythonize
MODULE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
LOCAL_DIR
=
os
.
path
.
join
(
MODULE_DIR
,
"
local
"
)
LIB_DIR
=
os
.
path
.
join
(
LOCAL_DIR
,
"
lib
"
)
LIB_DIR64
=
os
.
path
.
join
(
LOCAL_DIR
,
"
lib64
"
)
fem_core_path
=
Path
(
"
tetrax/sample/mesh/fem_core
"
).
resolve
()
with
open
(
"
README.md
"
,
"
r
"
)
as
fh
:
long_description
=
fh
.
read
()
c_sourcefiles
=
[
str
(
fem_core_path
/
p
)
for
p
in
[
"
dense2D_onthefly.c
"
,
"
bessel_K1.c
"
,
"
akmag.c
"
,
"
rotation_mat.c
"
,
"
matutils.c
"
,
"
sorting.c
"
,
"
utils.c
"
,
"
bnd2d.c
"
,
"
opmatspm.c
"
,
"
galerkin.c
"
,
"
fempreproc.c
"
,
"
hotriang.c
"
,
"
dense3D.c
"
,
"
integration_of_functions.c
"
,
]
]
compiler_extra_args
=
[
"
-O3
"
,
"
-Wno-cpp
"
,
"
-Wno-unused-function
"
,
"
-Wall
"
]
if
platform
.
system
()
==
"
Windows
"
:
compiler_extra_args
=
[]
# compiler_extra_args.append("-fopenmp")
compiler_extra_args
.
append
(
"
-std=c99
"
)
compiler_extra_links
=
[
"
-Wl,-rpath,{},-rpath,{}
"
.
format
(
LIB_DIR
,
LIB_DIR64
)]
# com_link.append('-fopenmp')
extensions
=
[
Extension
(
"
tetrax.sample.mesh.fem_core.cythoncore
"
,
[
*
c_sourcefiles
,
"
tetrax/sample/mesh/fem_core/cythoncore.pyx
"
],
libraries
=
[],
library_dirs
=
[],
include_dirs
=
[
str
(
fem_core_path
),
"
main
"
,
np
.
get_include
()],
extra_compile_args
=
compiler_extra_args
,
extra_link_args
=
compiler_extra_links
,
)
]
__version__
=
""
with
open
(
"
tetrax/_version.py
"
)
as
version_file
:
exec
(
version_file
.
read
())
# noqa: S102
setup
(
name
=
"
TetraX
"
,
version
=
__version__
,
entry_points
=
{
"
console_scripts
"
:
[
"
TetraX=fem_core:main
"
]},
packages
=
find_packages
(),
ext_modules
=
cythonize
(
extensions
,
language_level
=
3
),
py_modules
=
[
"
tetrax
"
],
author
=
"
Lukas Körber, Attila Kákay
"
,
author_email
=
"
l.koerber@hzdr.de, a.kakay@hzdr.de
"
,
url
=
"
https://www.tetrax.software
"
,
description
=
"
Finite-element micromagnetic modeling package.
"
,
long_description
=
long_description
,
long_description_content_type
=
"
text/markdown
"
,
license
=
"
GNU GPLv3
"
,
classifiers
=
[
"
Development Status :: 5 - Production/Stable
"
,
"
Intended Audience :: Science/Research
"
,
"
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
"
,
"
Programming Language :: Cython
"
,
"
Programming Language :: C
"
,
"
Programming Language :: Python :: 3 :: Only
"
,
"
Topic :: Scientific/Engineering :: Physics
"
,
"
Topic :: Scientific/Engineering :: Mathematics
"
,
],
install_requires
=
[
"
Cython>=3.0.11
"
,
"
k3d>=2.16.1
"
,
"
meshio>=5.3.5
"
,
"
numpy>=2.1.3
"
,
"
pandas>=2.2.3
"
,
"
plotly>=5.1.0
"
,
"
pygmsh>=7.1.14
"
,
"
scipy>=1.14.1
"
,
"
setuptools
"
,
"
tqdm>=4.66.6
"
,
"
bibtexparser>=1.4.2
"
,
"
joblib>=1.4.2
"
,
"
tabulate>=0.9.0
"
,
"
matplotlib>=3.9.2
"
,
"
pooch==1.8.2
"
,
"
wheel>=0.44.0
"
,
],
extras_require
=
{
"
dev
"
:
[
"
sphinx>=7
"
,
"
pydata_sphinx_theme
"
,
"
nbsphinx
"
,
"
numpydoc
"
,
"
sphinx_copybutton
"
,
]
},
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment