From 41b72771437090d34519e57666179551ac9aeed1 Mon Sep 17 00:00:00 2001 From: "Xavier C. Llano" Date: Wed, 3 May 2023 19:14:11 -0700 Subject: [PATCH] Disable speedup debugger for Python 3.11 --- .SRCINFO | 2 +- PKGBUILD | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 2edb025..0fd3e58 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = pycharm-professional pkgdesc = Python IDE for Professional Developers. Professional Edition pkgver = 2023.1.1 - pkgrel = 1 + pkgrel = 2 url = https://www.jetbrains.com/pycharm/ arch = x86_64 arch = aarch64 diff --git a/PKGBUILD b/PKGBUILD index b24b619..d2ea218 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=pycharm-professional pkgver=2023.1.1 -pkgrel=1 +pkgrel=2 pkgdesc="Python IDE for Professional Developers. Professional Edition" arch=('x86_64' 'aarch64') url='https://www.jetbrains.com/pycharm/' @@ -37,23 +37,23 @@ optdepends=('ipython: For enhanced interactive Python shell inside Pycharm' 'python-tox: Python environments for testing tool' 'jupyter-server: For Jupyter notebooks and apps') -build() { - # clean up and compile PyDev debugger used by PyCharm to speedup debugging - find pycharm-${pkgver}/plugins/python/helpers/pydev/ \( -name *.so -o -name *.pyd \) -delete - python pycharm-${pkgver}/plugins/python/helpers/pydev/setup_cython.py build_ext --inplace --force-cython - - # for attach debugger - pushd pycharm-${pkgver}/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac - if [[ $CARCH == "x86_64" ]]; then - g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp - elif [ "${CARCH}" == "aarch64" ]; then - g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp - fi - popd - - rm -rf pycharm-${pkgver}/plugins/python/helpers/pydev/build/ - find pycharm-${pkgver}/plugins/python/helpers/pydev/ -name __pycache__ -exec rm -rf {} \; -} +# build() { +# # clean up and compile PyDev debugger used by PyCharm to speedup debugging +# find pycharm-${pkgver}/plugins/python/helpers/pydev/ \( -name *.so -o -name *.pyd \) -delete +# python pycharm-${pkgver}/plugins/python/helpers/pydev/setup_cython.py build_ext --inplace --force-cython +# +# # for attach debugger +# pushd pycharm-${pkgver}/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac +# if [[ $CARCH == "x86_64" ]]; then +# g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp +# elif [ "${CARCH}" == "aarch64" ]; then +# g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp +# fi +# popd +# +# rm -rf pycharm-${pkgver}/plugins/python/helpers/pydev/build/ +# find pycharm-${pkgver}/plugins/python/helpers/pydev/ -name __pycache__ -exec rm -rf {} \; +# } package() { # licenses