How to add custom-package python2.7 for VyOS 1.4 custom build?

Hello,

For the custom scripts running on my VyOS instance I need python2. VyOS 1.4 ships with python3 only. I was trying to add the custom-package while building ISO as follows:

sudo ./build-vyos-image iso --architecture amd64 --build-by "@nobody" --custom-package python2.7

The build fails with the error:

Package python2.7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2.7-minimal python2.7-dev libpython2.7-stdlib libpython2.7-minimal libpython2.7-dev libpython2.7
  idle-python2.7

E: Package 'python2.7' has no installation candidate

Changing the --custom-package python2.7 to python2.7-minimal or python2 doesn’t help either.

Is there a way to add python 2 to VyOS 1.4? And how to do it properly?
Thanks a lot.

can you refer this link:GitHub - onedr0p/vyos-build: VyOS with additional packages