#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 , 15 years ago
Milestone: | → 3.1.0 |
---|---|
Owner: | set to |
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.