dev/tools/windows_build_inplace.py
raw| 1 | ''' |
| 2 | This tool can be used to run setup.py inplace on Windows. |
| 3 | ''' |
| 4 | |
| 5 | import os |
| 6 | os.chdir('../../') |
| 7 | if os.path.exists('brian2/synapses/cythonspikequeue.pyd'): |
| 8 | os.remove('brian2/synapses/cythonspikequeue.pyd') |
| 9 | if os.path.exists('brian2/synapses/cythonspikequeue.cpp'): |
| 10 | os.remove('brian2/synapses/cythonspikequeue.cpp') |
| 11 | os.system('python setup.py build_ext --inplace') |