Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
78cdd507
Commit
78cdd507
authored
4 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing python installation
parent
22bf01d4
Loading
Loading
No related merge requests found
Pipeline
#2167
passed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install
+0
-15
0 additions, 15 deletions
install
script/solve_python
+2
-2
2 additions, 2 deletions
script/solve_python
with
2 additions
and
17 deletions
install
+
0
−
15
View file @
78cdd507
...
...
@@ -232,21 +232,6 @@ if [ ! -d "$i_dir/PETSC" -o ! -f "$i_dir/PETSC/include/petsc.h" -o ! -d "$i_dir/
exit
1
fi
fi
if
haveProg python2
;
then
python_command
=
python2
else
# we check that python is python2
py_ver
=
$(
python
--version
2>&1 |
grep
Python |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1/g'
)
if
[
$py_ver
-eq
3
]
;
then
# we have to install python2
echo
-e
"
\0
33[1mPETSC require python2 installed, searching a solution to install python2 ...
\0
33[0m"
solve_python
$platform
fi
python_command
=
python
fi
fi
#### License and Copyright disclamer
...
...
This diff is collapsed.
Click to expand it.
script/solve_python
+
2
−
2
View file @
78cdd507
...
...
@@ -12,8 +12,8 @@ fi
if
[
x
"
$1
"
=
x
"linux"
]
;
then
pc_install_command
"
$pcman
"
commands[0]
=
"su -c
\"
$pc_install_command_ret
python
2
\"
"
commands[1]
=
"sudo
$pc_install_command_ret
python
2
"
commands[0]
=
"su -c
\"
$pc_install_command_ret
python
\"
"
commands[1]
=
"sudo
$pc_install_command_ret
python"
possible_solutions
"
${
commands
[@]
}
"
fi
}
...
...
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