Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#164 closed defect (wontfix)

Include Python.h in non-debug mode

Reported by: mloskot Owned by: sgillies
Priority: major Milestone:
Component: SWIG Python Version: main
Severity: Unassigned Keywords: python debug
Cc:

Description

When building GEOS using Visual C++ in Debug mode, the include of Python.h header should be cheated that it's used in non-debug mode. Here is how to include Python.h properly:

/* Python.h has to appear first */
#ifdef _DEBUG
#undef _DEBUG
#include <Python.h>
#define _DEBUG
#undef _CRT_MANIFEST_RETAIL
#else
#include <Python.h>
#endif

Otherwise, GEOS bindings for Python can not be compiled in debug mode.

Change History (3)

comment:1 by pramsey, 15 years ago

Milestone: 3.1.0
Owner: set to sgillies

comment:2 by sgillies, 15 years ago

Resolution: wontfix
Status: newclosed

We concluded a year ago that the GEOS C++ API was unstable and that SWIG based Python bindings were not appropriate. Python users should instead be using the API built into GeoDjango (for Django) and Shapely.

comment:3 by (none), 15 years ago

Milestone: 3.1.0

Milestone 3.1.0 deleted

Note: See TracTickets for help on using tickets.