OpenMS
PythonInfo.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h>
12 
13 namespace OpenMS
14 {
15  class String;
23  class OPENMS_DLLAPI PythonInfo
24  {
25  public:
37  static bool canRun(String& python_executable, String& error_msg);
38 
39 
50  static bool isPackageInstalled(const String& python_executable, const String& package_name);
51 
61  static String getVersion(const String& python_executable);
62  };
63 
64 }
65 
Detect Python and retrieve information.
Definition: PythonInfo.h:24
static bool isPackageInstalled(const String &python_executable, const String &package_name)
Determine if the Python given in python_executable has the package package_name already installed.
static String getVersion(const String &python_executable)
Determine the version of Python given in python_executable by calling '–version'.
static bool canRun(String &python_executable, String &error_msg)
Determine if Python is installed and executable.
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19