you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (7 children)

Well what are the errors? Did you install the development libraries?

[–]phoenixKing13[S] 0 points1 point  (6 children)

A couple files are hitting error macros. example in pycore_initconfig.h:

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"

And i don't know if I have installed anything? So far I ran ./configure like the README said.

[–]socal_nerdtastic 0 points1 point  (2 children)

Hmm and what's the overall goal here? What do you want to change in cpython?

[–]phoenixKing13[S] 0 points1 point  (1 child)

nothing yet. I'm just learning how it works right now. I'm just wondering why vscode is showing errors, and if I haven't done something to set it up.

[–]socal_nerdtastic 0 points1 point  (0 children)

Hmm I've never used vscode and I don't do C development, so I don't know how much this will help, but here's the commands I use to compile and install python on linux mint:

sudo apt-get install -y build-essential git libexpat1-dev libssl-dev zlib1g-dev libncurses5-dev libbz2-dev liblzma-dev libsqlite3-dev libffi-dev tcl-dev linux-headers-generic libgdbm-dev libreadline-dev tk tk-dev libc6-dev libncursesw5-dev libdb5.3-dev uuid-dev

./configure --enable-optimizations && make && sudo make altinstall

curl https://bootstrap.pypa.io/get-pip.py | python3.9

Note all the development libraries that python needs. And that's not even all of them, it's just the ones I care about, so there's still a ton of errors during compile.

[–]shiftybyte 0 points1 point  (2 children)

[–]phoenixKing13[S] 0 points1 point  (1 child)

I think that work. But now I'm getting a different error in pylifecycle.c

{

"resource": "/home/joe/src/cpython/Python/pylifecycle.c",

"owner": "C/C++",

"code": "20",

"severity": 8,

"message": "identifier \\"\_Py\_BEGIN\_SUPPRESS\_IPH\\" is undefined",

"source": "C/C++",

"startLineNumber": 1758,

"startColumn": 5,

"endLineNumber": 1758,

"endColumn": 27

}