Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
a08f63e1
Commit
a08f63e1
authored
2 years ago
by
Hkorb
Browse files
Options
Downloads
Patches
Plain Diff
adds support for usage of pip option config settings
parent
68dfc4c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!170
Kernel templetization and efficiency improvements
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+2
-1
2 additions, 1 deletion
pyproject.toml
setup.py
+6
-3
6 additions, 3 deletions
setup.py
with
8 additions
and
4 deletions
pyproject.toml
+
2
−
1
View file @
a08f63e1
...
@@ -5,4 +5,5 @@ requires = [
...
@@ -5,4 +5,5 @@ requires = [
"cmake"
,
"cmake"
,
"ninja; platform_system!='Windows'"
"ninja; platform_system!='Windows'"
]
]
build-backend
=
"setuptools.build_meta"
build-backend
=
"setup_builder"
\ No newline at end of file
backend-path
=
[
"utilities"
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
6
−
3
View file @
a08f63e1
import
inspect
import
sys
import
sys
from
pathlib
import
Path
from
pathlib
import
Path
import
skbuild
import
skbuild
import
setuptools
"""
"""
Install python wrapper of virtual fluids
Install python wrapper of virtual fluids
install via python:
install via python:
python setup.py install build_ext
python setup.py install build_ext
set CMAKE Flags via -DBUILD_VF_GPU:BOOL=1
set CMAKE Flags via -DBUILD_VF_GPU:BOOL=1
CMAKE flags have to be separated by --
example: python setup.py install build_ext -- VBUILD_VF_CPU:BOOL=ON
or install via pip:
or install via pip:
pip install -e .
pip install -e .
set CMAKE Flags via --config-settings -DBUILD_VF_GPU=1
set CMAKE Flags via --config-settings -DBUILD_VF_GPU=1
...
@@ -29,6 +29,9 @@ init_file.write_text(init_py)
...
@@ -29,6 +29,9 @@ init_file.write_text(init_py)
name_of_build_dir
=
"
build
"
name_of_build_dir
=
"
build
"
build_dir
=
(
top_dir
/
name_of_build_dir
).
mkdir
(
exist_ok
=
True
)
build_dir
=
(
top_dir
/
name_of_build_dir
).
mkdir
(
exist_ok
=
True
)
extra_args
=
[]
if
(
"
cmake_args
"
in
locals
()):
extra_args
.
extend
([
f
"
{
k
}
=
{
v
}
"
for
k
,
v
in
locals
()[
"
cmake_args
"
].
items
()])
cmake_args
=
[
cmake_args
=
[
f
"
-DPython3_ROOT_DIR=
{
Path
(
sys
.
prefix
)
}
"
,
f
"
-DPython3_ROOT_DIR=
{
Path
(
sys
.
prefix
)
}
"
,
...
@@ -37,7 +40,7 @@ cmake_args = [
...
@@ -37,7 +40,7 @@ cmake_args = [
"
-DBUILD_VF_DOUBLE_ACCURACY=OFF
"
,
"
-DBUILD_VF_DOUBLE_ACCURACY=OFF
"
,
"
-DBUILD_VF_UNIT_TESTS:BOOL=OFF
"
,
"
-DBUILD_VF_UNIT_TESTS:BOOL=OFF
"
,
"
-DBUILD_WARNINGS_AS_ERRORS=OFF
"
,
"
-DBUILD_WARNINGS_AS_ERRORS=OFF
"
,
]
]
+
extra_args
skbuild
.
setup
(
skbuild
.
setup
(
name
=
"
pyfluids
"
,
name
=
"
pyfluids
"
,
...
...
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