@Xavier I still can't get it to work.
I have downloaded the package source with yay -G pycharm-professional
, built the package with makepkg
without touching the PKGBUILD first, and then retried after deleting both prepare()
and build()
from PKBUILD.
For now I am running all debug sessions with PYDEVD_USE_CYTHON=NO;PYDEVD_USE_FRAME_EVAL=NO
as env variables.
EDIT: I think the problem is that the Cython extension is compiled for the system python, python 3.13, while I'm trying to debug a script in a venv for python 3.12. I don't know if there is a proper way of doing this.
EDIT 2: That was the problem. In PKGBUILD build()
I have added a second extension compilation like so:
# compile PyDev debugger used by PyCharm to speedup debugging
python ./plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
/home/user/.pyenv/versions/3.12.8/bin/python ./plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
I don't know if it would make sense to automatically build the extension for each installed pyenv python version in the PKGBUILD.
Pinned Comments