[Python.NET] UCS2/UCS4 detection

Sanghyeon Seo sanxiyn at gmail.com
Thu Oct 18 14:07:22 CEST 2007

Sanghyeon Seo wrote:
> UCS2/UCS4 detection in Makefile doesn't seem to work here.

2007/10/18, Christian Heimes <christian at cheimes.de>:
> What's your full Python version, OS, distribution and the output of
> $ python -c "from distutils.sysconfig import get_config_var; print
> get_config_var('Py_UNICODE_SIZE')"

Debian GNU/Linux, Python package 2.4.4-6.

get_config_var() returns None. The same expression returns 4 for Python 2.5

> I'm using get_config_var() because it's the obvious choice. It's using
> the information from pyconfig.h.

Is it? The strange thing is, parse_config_h() isn't called anywhere in
this file:

Compare with:

Seo Sanghyeon

More information about the PythonDotNet mailing list