[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 <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
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user