2
0
pycharm-professional/pycharm-professional_x86_64.install
Xavier C. Llano 3a827d3f82 v2023.2
2023-07-29 02:03:48 -07:00

22 lines
674 B
Plaintext

post_install() {
echo ":: Building Cython speed-ups"
# compile PyDev debugger used by PyCharm to speedup debugging
python /opt/pycharm-professional/plugins/python/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
# for attach debugger
pushd /opt/pycharm-professional/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac
g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
popd
rm -rf /opt/pycharm-professional/plugins/python/helpers/pydev/build
echo ":: Cython speed-ups done"
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf /opt/pycharm-professional
}