[libcalamares] Untangle Python includes

- Use BoostPython.h to manage overall includes
 - Remove local home-grown variations
This commit is contained in:
Adriaan de Groot 2020-02-12 11:02:38 +01:00
parent f8998834cf
commit 95722541d0
5 changed files with 6 additions and 46 deletions

View File

@ -25,14 +25,6 @@
#include <QDir>
#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 CalamaresPython

View File

@ -21,20 +21,10 @@
#define CALAMARES_PYTHONJOBHELPER_H
#include "PythonJob.h"
#include "utils/BoostPython.h"
#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
{

View File

@ -23,19 +23,12 @@
#include "GlobalStorage.h"
#include "JobQueue.h"
#include "PythonHelper.h"
#include "PythonJobApi.h"
#include "utils/BoostPython.h"
#include "utils/Logger.h"
#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;
BOOST_PYTHON_FUNCTION_OVERLOADS( mount_overloads, CalamaresPython::mount, 2, 4 );

View File

@ -19,26 +19,17 @@
#include "PythonJobApi.h"
#include "GlobalStorage.h"
#include "JobQueue.h"
#include "PythonHelper.h"
#include "utils/CalamaresUtilsSystem.h"
#include "utils/Logger.h"
#include "utils/String.h"
#include "GlobalStorage.h"
#include "JobQueue.h"
#include <QCoreApplication>
#include <QDir>
#include <QStandardPaths>
#undef slots
#include "utils/boost-warnings.h"
#include <boost/python.hpp>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
namespace bp = boost::python;
static int

View File

@ -22,13 +22,7 @@
#include "qglobal.h" // For qreal
#undef slots
#include "utils/boost-warnings.h"
#include <boost/python/dict.hpp>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#include "utils/BoostPython.h"
namespace Calamares
{