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
Core Modules
dune-common
Commits
15f2151a
Commit
15f2151a
authored
4 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
catch exception when calling make install_python for an installed module.
parent
7a4cb489
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!918
Fix #236
Pipeline
#33007
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/setup-dunepy.py
+7
-4
7 additions, 4 deletions
bin/setup-dunepy.py
with
7 additions
and
4 deletions
bin/setup-dunepy.py
+
7
−
4
View file @
15f2151a
...
...
@@ -118,10 +118,13 @@ def main(argv):
moddir
=
duneModules
[
1
][
m
]
pythonModule
=
toBuildDir
(
builddir
,
moddir
,
m
)
print
(
"
calling install_python for %s (%s)
"
%
(
m
,
pythonModule
))
command
=
[
'
cmake
'
,
'
--build
'
,
'
.
'
,
'
--target
'
,
'
install_python
'
]
proc
=
subprocess
.
Popen
(
command
,
cwd
=
pythonModule
,
stdout
=
subprocess
.
PIPE
)
stdout
,
stderr
=
proc
.
communicate
()
logger
.
debug
(
buffer_to_str
(
stdout
))
try
:
command
=
[
'
cmake
'
,
'
--build
'
,
'
.
'
,
'
--target
'
,
'
install_python
'
]
proc
=
subprocess
.
Popen
(
command
,
cwd
=
pythonModule
,
stdout
=
subprocess
.
PIPE
)
stdout
,
stderr
=
proc
.
communicate
()
logger
.
debug
(
buffer_to_str
(
stdout
))
except
FileNotFoundError
:
print
(
"
Warning: build dir not found possibly module is installed then python bindings should be already available
"
)
if
__name__
==
"
__main__
"
:
main
(
sys
.
argv
[
1
:])
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