OpenMS
Loading...
Searching...
No Matches
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#include <string>
14
15namespace OpenMS
16{
24 class OPENMS_DLLAPI PythonInfo
25 {
26 public:
38 static bool canRun(std::string& python_executable, std::string& error_msg);
39
40
51 static bool isPackageInstalled(const std::string& python_executable, const std::string& package_name);
52
62 static std::string getVersion(const std::string& python_executable);
63 };
64
65}
66
Detect Python and retrieve information.
Definition PythonInfo.h:25
static bool isPackageInstalled(const std::string &python_executable, const std::string &package_name)
Determine if the Python given in python_executable has the package package_name already installed.
static bool canRun(std::string &python_executable, std::string &error_msg)
Determine if Python is installed and executable.
static std::string getVersion(const std::string &python_executable)
Determine the version of Python given in python_executable by calling '–version'.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19