As @marguedas mentioned, for python, which does not need to be compiled, ament build --symlink-install creates a symbolic link in the build directory where in the changes made in the source code (src directory) are automatically reflected.