summarylogtreecommitdiffstats
path: root/pycharm-professional_aarch64.install
blob: 7fadb8b498c5124490c748450f1a498bb0c9a6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    echo ":: Building Cython speed-ups" 
    # compile PyDev debugger used by PyCharm to speedup debugging
    python /opt/pycharm-professional/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
    
    # for attach debugger
    pushd /opt/pycharm-professional/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/linux_and_mac
    g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
    popd
    
    rm -rf /opt/pycharm-professional/plugins/python-ce/helpers/pydev/build
    echo ":: Cython speed-ups done" 
}

post_upgrade() {
    post_install
}

post_remove() {
    rm -rf /opt/pycharm-professional
}