Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
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
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
7f098efc
Commit
7f098efc
authored
8 years ago
by
Nicolas Bellot
Committed by
hhakim
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
wrapper python : module matplotlib
parent
946eab69
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/check_python.py
+17
-1
17 additions, 1 deletion
CMake/check_python.py
with
17 additions
and
1 deletion
CMake/check_python.py
+
17
−
1
View file @
7f098efc
...
...
@@ -38,16 +38,21 @@
import
sys
#getting the version of python
print
"
python version :
"
+
str
(
sys
.
version_info
.
major
)
+
'
.
'
+
str
(
sys
.
version_info
.
minor
)
output_value
=
0
print
"
python version :
"
+
str
(
sys
.
version_info
.
major
)
+
'
.
'
+
str
(
sys
.
version_info
.
minor
)
###### NECESSARY MODULE ######
print
"
*** PYTHON NECESSARY MODULES ***
"
try
:
print
(
'
NUMPY PYTHON module :
'
)
import
numpy
print
(
'
module installed
'
)
print
"
version :
"
+
numpy
.
__version__
if
(
numpy
.
__version__
<
'
1.9.2
'
):
print
"
WARNING your numpy version may be too old, only tested with 1.9.2 version
"
except
ImportError
:
print
(
'
module is missing !
'
)
output_value
=-
1
...
...
@@ -63,6 +68,7 @@ except ImportError:
###### OPTIONAL MODULE ######
print
"
*** PYTHON OPTIONAL MODULES ***
"
try
:
print
(
'
SCIPY PYTHON module :
'
)
import
scipy
as
sp
...
...
@@ -73,4 +79,14 @@ except ImportError:
print
(
'
module Scipy not present, no time comparison with scipy will be made
'
)
output_value
=
1
try
:
print
(
'
MATPLOTLIB PYTHON module :
'
)
import
matplotlib
as
plt
print
(
'
module installed
'
)
print
"
version :
"
+
plt
.
__version__
except
ImportError
:
print
(
'
module matplotlib not present, no display will be made
'
)
exit
(
output_value
)
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