Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Tobias Leibner
dune-common
Commits
7a3091ec
Commit
7a3091ec
authored
4 years ago
by
Samuel Burbulla
Committed by
Andreas Dedner
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update dependencies in pyproject.toml.
Rename 'Loading' to 'Compiling' in builder.
parent
f40b9821
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
python/dune/generator/builder.py
+1
-6
1 addition, 6 deletions
python/dune/generator/builder.py
with
2 additions
and
7 deletions
pyproject.toml
+
1
−
1
View file @
7a3091ec
[build-system]
requires
=
[
'setuptools'
,
'wheel'
,
'scikit-build'
,
'cmake'
,
'ninja'
,
'requests'
,
'portalocker'
,
'numpy'
]
requires
=
[
'setuptools'
,
'wheel'
,
'scikit-build'
,
'cmake'
,
'ninja'
,
'requests'
,
'portalocker'
,
'numpy'
,
'portalocker'
,
'numpy'
,
'wheel'
,
'mpi4py'
]
build-backend
=
'setuptools.build_meta'
This diff is collapsed.
Click to expand it.
python/dune/generator/builder.py
+
1
−
6
View file @
7a3091ec
...
...
@@ -103,18 +103,13 @@ class Builder:
# module must be generated so lock the source file
with
Lock
(
os
.
path
.
join
(
self
.
dune_py_dir
,
'
lock-
'
+
moduleName
+
'
.lock
'
),
flags
=
LOCK_EX
):
sourceFileName
=
os
.
path
.
join
(
self
.
generated_dir
,
moduleName
+
"
.cc
"
)
<<<<<<<
HEAD
if
not
os
.
path
.
isfile
(
sourceFileName
):
logger
.
info
(
"
Compiling
"
+
pythonName
)
=======
line
=
"
dune_add_pybind11_module(NAME
"
+
moduleName
+
"
EXCLUDE_FROM_ALL)
"
# first check if this line is already present in the CMakeLists file
# (possible if a previous script was stopped by user before module was compiled)
with
open
(
os
.
path
.
join
(
self
.
generated_dir
,
"
CMakeLists.txt
"
),
'
r
'
)
as
out
:
found
=
line
in
out
.
read
()
if
not
os
.
path
.
isfile
(
sourceFileName
)
or
not
found
:
logger
.
info
(
"
Loading
"
+
pythonName
+
"
(new)
"
)
>>>>>>>
b73437ddb
...
also
make
new
module
if
line
in
CMakeLists
is
missing
logger
.
info
(
"
Compiling
"
+
pythonName
)
code
=
str
(
source
)
with
open
(
os
.
path
.
join
(
sourceFileName
),
'
w
'
)
as
out
:
out
.
write
(
code
)
...
...
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