Thanks to visit codestin.com
Credit goes to github.com

Skip to content

thomasjpfan/scikit-learn-debugging-python3.11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scikit-learn Debugging Python 3.11 on Linux

This are instructions for debugging for Linux.

git clone https://github.com/thomasjpfan/scikit-learn-debugging-python3.11
git submodule update --init

# Build Python v3.11.0rc2
pushd cpython
./configure
# If you want debug symbols
# ./configure --with-pydebug
make -j8
popd

# Create venv
./cpython/python -m venv .venv
source .venv/bin/activate

# Install dependencies
python -m pip install numpy scipy Cython pytest

# Install scikit-learn with debug symbols
cd scikit-learn
export SKLEARN_BUILD_PARALLEL=8
CFLAGS="-Og -g" python setup.py develop

# Run pytest
pytest sklearn -v

# Run pytest with gdb
gdb --args python -m pytest sklearn -v

With debug symbols on, I get this backtrace.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published