mirror of
https://github.com/triqs/dft_tools
synced 2025-01-12 14:08:24 +01:00
Fix for no python compilation
This commit is contained in:
parent
96bedae5f1
commit
9f5d5ceb2d
@ -21,8 +21,16 @@
|
|||||||
#ifndef TRIQS_MEM_BLOCK_H
|
#ifndef TRIQS_MEM_BLOCK_H
|
||||||
#define TRIQS_MEM_BLOCK_H
|
#define TRIQS_MEM_BLOCK_H
|
||||||
#include "../../utility/exceptions.hpp"
|
#include "../../utility/exceptions.hpp"
|
||||||
|
|
||||||
|
#ifdef TRIQS_WITH_PYTHON_SUPPORT
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <numpy/arrayobject.h>
|
#include <numpy/arrayobject.h>
|
||||||
|
#else
|
||||||
|
// if no python, same code but remove python parts...
|
||||||
|
typedef void PyObject;
|
||||||
|
#define Py_DECREF(P)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "./memcopy.hpp"
|
#include "./memcopy.hpp"
|
||||||
#include <triqs/utility/macros.hpp>
|
#include <triqs/utility/macros.hpp>
|
||||||
|
|
||||||
@ -34,11 +42,6 @@
|
|||||||
#define TRACE_MEM_DEBUG(X)
|
#define TRACE_MEM_DEBUG(X)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// if no python, same code but remove python parts...
|
|
||||||
#ifndef TRIQS_WITH_PYTHON_SUPPORT
|
|
||||||
typedef void PyObject;
|
|
||||||
#define Py_DECREF(P)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace triqs { namespace arrays { namespace storages { //namespace details {
|
namespace triqs { namespace arrays { namespace storages { //namespace details {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user