Andrew Tomazos <andrewtoma...@gmail.com> added the comment:

The problem occurs if you:

   #include <python3.8/Python.h>

on *nix systems.  Note `/usr/include/` is in the system include path.  One 
workaround is to `-I/usr/include/python3.8` and then `#include <Python.h>`.  
Another workaround is to comment out:

   // #include "cpython/initconfig.h"

in `cpython/pystate.h`.

A fix would be appreciated, so that `#include <python3.8/Python.h>` would work 
out of the box (without having to add `-I`).

----------
nosy: +andrewtomazos

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to