Skip to content

Commit d67ff1c

Browse files
committed
Added: delete old python modules.
'python setup.py build' may not recognize that the 'model.hpp' file has been changed. It is better to delete old modules alltogether - their copies should remain in the 'models/' folder.
1 parent 92ccb8b commit d67ff1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

initialize_model.sh

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ cp $MESON_DECA/lib/c_lib/model.hpp $MESON_DECA/models/$MODEL_FOLDER/backup/model
3636
# Build python library containing model description
3737
echo "#### MESON_DECA: Building python modules..."
3838
cd "$MESON_DECA/lib/c_lib/py_wrapper"
39+
# Delete old modules
40+
rm -r build/*
3941
python setup.py build
4042

4143
# Copy it to the model directory

0 commit comments

Comments
 (0)