[libcalamares] Untangle Python includes
- Use BoostPython.h to manage overall includes - Remove local home-grown variations
This commit is contained in:
parent
f8998834cf
commit
95722541d0
@ -25,14 +25,6 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
||||||
#undef slots
|
|
||||||
#include "utils/boost-warnings.h"
|
|
||||||
#include <boost/python.hpp>
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace bp = boost::python;
|
namespace bp = boost::python;
|
||||||
|
|
||||||
namespace CalamaresPython
|
namespace CalamaresPython
|
||||||
|
@ -21,20 +21,10 @@
|
|||||||
#define CALAMARES_PYTHONJOBHELPER_H
|
#define CALAMARES_PYTHONJOBHELPER_H
|
||||||
|
|
||||||
#include "PythonJob.h"
|
#include "PythonJob.h"
|
||||||
|
#include "utils/BoostPython.h"
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#undef slots
|
|
||||||
#include "utils/boost-warnings.h"
|
|
||||||
|
|
||||||
#include <boost/python/dict.hpp>
|
|
||||||
#include <boost/python/list.hpp>
|
|
||||||
#include <boost/python/object.hpp>
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace CalamaresPython
|
namespace CalamaresPython
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -23,19 +23,12 @@
|
|||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
#include "PythonHelper.h"
|
#include "PythonHelper.h"
|
||||||
|
#include "PythonJobApi.h"
|
||||||
|
#include "utils/BoostPython.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
#undef slots
|
|
||||||
#include "utils/boost-warnings.h"
|
|
||||||
|
|
||||||
#include <boost/python.hpp>
|
|
||||||
#include <boost/python/args.hpp>
|
|
||||||
|
|
||||||
#include "PythonJobApi.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace bp = boost::python;
|
namespace bp = boost::python;
|
||||||
|
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( mount_overloads, CalamaresPython::mount, 2, 4 );
|
BOOST_PYTHON_FUNCTION_OVERLOADS( mount_overloads, CalamaresPython::mount, 2, 4 );
|
||||||
|
@ -19,26 +19,17 @@
|
|||||||
|
|
||||||
#include "PythonJobApi.h"
|
#include "PythonJobApi.h"
|
||||||
|
|
||||||
|
#include "GlobalStorage.h"
|
||||||
|
#include "JobQueue.h"
|
||||||
#include "PythonHelper.h"
|
#include "PythonHelper.h"
|
||||||
#include "utils/CalamaresUtilsSystem.h"
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "utils/String.h"
|
#include "utils/String.h"
|
||||||
|
|
||||||
#include "GlobalStorage.h"
|
|
||||||
#include "JobQueue.h"
|
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
|
|
||||||
#undef slots
|
|
||||||
#include "utils/boost-warnings.h"
|
|
||||||
#include <boost/python.hpp>
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace bp = boost::python;
|
namespace bp = boost::python;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -22,13 +22,7 @@
|
|||||||
|
|
||||||
#include "qglobal.h" // For qreal
|
#include "qglobal.h" // For qreal
|
||||||
|
|
||||||
#undef slots
|
#include "utils/BoostPython.h"
|
||||||
#include "utils/boost-warnings.h"
|
|
||||||
#include <boost/python/dict.hpp>
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Calamares
|
namespace Calamares
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user