Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
pycodegen
lbmpy
Commits
4a17e5ef
Commit
4a17e5ef
authored
1 year ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Align build system to pystencils
parent
d88e9cff
No related branches found
No related tags found
1 merge request
!163
Refactor build system
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lbmpy/phasefield/nphase_nestler.py
+1
-4
1 addition, 4 deletions
lbmpy/phasefield/nphase_nestler.py
lbmpy/phasefield/simplex_projection.pyx
+1
-4
1 addition, 4 deletions
lbmpy/phasefield/simplex_projection.pyx
pyproject.toml
+100
-0
100 additions, 0 deletions
pyproject.toml
with
102 additions
and
8 deletions
lbmpy/phasefield/nphase_nestler.py
+
1
−
4
View file @
4a17e5ef
...
...
@@ -4,10 +4,7 @@ try:
pyximport
.
install
(
language_level
=
3
)
from
lbmpy.phasefield.simplex_projection
import
simplex_projection_2d
# NOQA
except
ImportError
:
try
:
from
lbmpy.phasefield.simplex_projection
import
simplex_projection_2d
# NOQA
except
ImportError
:
raise
ImportError
(
"
neither pyximport nor binary module simplex_projection_2d available.
"
)
raise
ImportError
(
"
pyximport not available. Please install Cython to use simplex_projection_2d.
"
)
import
sympy
as
sp
...
...
This diff is collapsed.
Click to expand it.
lbmpy/phasefield/simplex_projection.pyx
+
1
−
4
View file @
4a17e5ef
# Workaround for cython bug
# see https://stackoverflow.com/questions/8024805/cython-compiled-c-extension-importerror-dynamic-module-does-not-define-init-fu
WORKAROUND
=
"
Something
"
# cython: language_level=3str
import
cython
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
100
−
0
View file @
4a17e5ef
[project]
name
=
"pystencils"
description
=
"Speeding up stencil computations on CPUs and GPUs"
dynamic
=
[
"version"
]
readme
=
"README.md"
authors
=
[
{
name
=
"Martin Bauer"
}
,
{
name
=
"Jan Hönig "
}
,
{
name
=
"Markus Holzer"
}
,
{
name
=
"Frederik Hennig"
}
,
{
email
=
"cs10-codegen@fau.de"
}
,
]
license
=
{
file
=
"COPYING.txt"
}
requires-python
=
">
=
3.10
"
dependencies
=
["sympy>=1.6,<
=
1.11
.
1
", "
numpy>
=
1.8
.
0
", "
appdirs
", "
joblib
"]
classifiers
=
[
"Development Status :: 4 - Beta"
,
"Framework :: Jupyter"
,
"Topic :: Software Development :: Code Generators"
,
"Topic :: Scientific/Engineering :: Physics"
,
"Intended Audience :: Developers"
,
"Intended Audience :: Science/Research"
,
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)"
,
]
[project.urls]
"Bug Tracker"
=
"https://i10git.cs.fau.de/pycodegen/pystencils/-/issues"
"Documentation"
=
"https://pycodegen.pages.i10git.cs.fau.de/pystencils/"
"Source Code"
=
"https://i10git.cs.fau.de/pycodegen/pystencils"
[project.optional-dependencies]
gpu
=
[
'cupy'
]
alltrafos
=
[
'islpy'
,
'py-cpuinfo'
]
bench_db
=
[
'blitzdb'
,
'pymongo'
,
'pandas'
]
interactive
=
[
'matplotlib'
,
'ipy_table'
,
'imageio'
,
'jupyter'
,
'pyevtk'
,
'rich'
,
'graphviz'
,
]
use_cython
=
[
'Cython'
]
doc
=
[
'sphinx'
,
'sphinx_rtd_theme'
,
'nbsphinx'
,
'sphinxcontrib-bibtex'
,
'sphinx_autodoc_typehints'
,
'pandoc'
,
]
tests
=
[
'pytest'
,
'pytest-cov'
,
'pytest-html'
,
'ansi2html'
,
'pytest-xdist'
,
'flake8'
,
'nbformat'
,
'nbconvert'
,
'ipython'
,
'randomgen>
=
1.18
',
]
[build-system]
requires
=
[
"setuptools>
=
69
",
"versioneer>
=
0.29
",
"tomli; python_version < '3.11'"
,
# 'Cython'
]
build-backend
=
"setuptools.build_meta"
[tool.setuptools.package-data]
pystencils
=
[
"include/*.h"
,
"backends/cuda_known_functions.txt"
,
"backends/opencl1.1_known_functions.txt"
,
"boundaries/createindexlistcython.c"
,
"boundaries/createindexlistcython.pyx"
,
]
[tool.setuptools.packages.find]
where
=
[
"."
]
include
=
[
"pystencils"
,
"pystencils.*"
]
namespaces
=
false
[tool.versioneer]
# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
VCS
=
"git"
style
=
"pep440"
versionfile_source
=
"pystencils/_version.py"
versionfile_build
=
"pystencils/_version.py"
tag_prefix
=
"release/"
parentdir_prefix
=
"pystencils-"
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