blob: 450bac968ae609123a5d970473cd4166470f6df3 (
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++ -m64 -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
}
|