2
0
pycharm-professional/pycharm-professional_aarch64.install

22 lines
700 B
Plaintext
Raw Normal View History

2023-07-29 12:03:48 +03:00
post_install() {
echo ":: Building Cython speed-ups"
# compile PyDev debugger used by PyCharm to speedup debugging
2024-08-12 20:59:14 +03:00
python /opt/pycharm-professional/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
2023-07-29 12:03:48 +03:00
# for attach debugger
2024-08-12 20:59:14 +03:00
pushd /opt/pycharm-professional/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/linux_and_mac
2023-07-29 12:03:48 +03:00
g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
popd
2024-08-12 20:59:14 +03:00
rm -rf /opt/pycharm-professional/plugins/python-ce/helpers/pydev/build
2023-07-29 12:03:48 +03:00
echo ":: Cython speed-ups done"
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf /opt/pycharm-professional
}