[pitivi] check: Make numpy a hard dependency as we now need it for core audio waveforms



commit 3d02054b498a5eb5505433b88c2049638f4c7da4
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Tue Jul 2 16:57:20 2013 -0400

    check: Make numpy a hard dependency as we now need it for core audio waveforms

 pitivi/check.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 69b57ed..6000a74 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -45,6 +45,7 @@ HARD_DEPS = {
     "Gst": "1.1.0",
     "Gtk": "3.4.0",
     "xdg": None,  # "pyxdg", using static python bindings
+    "numpy": None,  # using static python bindings
 
     # The following are not checked, but needed for the rest to work:
     "gobject-introspection": "1.34.0",
@@ -176,6 +177,9 @@ def check_hard_dependencies():
     satisfied, req, inst = _check_dependency("xdg", False)
     if not satisfied:
         missing_hard_deps["PyXDG"] = (req, inst)
+    satisfied, req, inst = _check_dependency("numpy", False)
+    if not satisfied:
+        missing_hard_deps["NumPy"] = (req, inst)
 
     # Since we had to check Gst beforehand, we only do the import now:
     from gi.repository import Gst
@@ -234,8 +238,6 @@ def check_soft_dependencies():
     Gst.init(None)
     registry = Gst.Registry.get()
     # Description strings are translatable as they may be shown in the pitivi UI
-    if not _try_import("numpy"):
-        missing_soft_deps["NumPy"] = _("enables the autoalign feature")
     if not _try_import("pycanberra"):
         missing_soft_deps["PyCanberra"] = \
             _("enables sound notifications when rendering is complete")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]