mkdir -p /tmp/open-interpreter
cd /tmp/open-interpreter || exit


# blessed
py2dsp --build --github https://github.com/jquast/blessed
sudo bash -c "dpkg -i result/python3-blessed_*~pypi2deb_all.deb"

# rich
py2dsp --build --github https://github.com/Textualize/rich
sudo bash -c "dpkg -i result/python3-rich_*~pypi2deb_all.deb"

# readchar
py2dsp --build --github https://github.com/magmax/python-readchar
sudo bash -c "dpkg -i result/python3-readchar_*~pypi2deb_all.deb"

# editor
py2dsp --build --github https://github.com/rec/editor
sudo bash -c "dpkg -i result/python3-editor_*~pypi2deb_all.deb"

# runs 
# need to add backend = "python3-poetry-core" to the pyproject.toml
# before running pt2dsp and remove it before running dpkg-buildpackage
# need to add debian/files
# python3-runs_1.1.0-0~pypi2deb_all.deb python optional
# runs_1.1.0-0~pypi2deb_amd64.buildinfo python optional
py2dsp --build --github https://github.com/rec/runs
sudo bash -c "dpkg -i result/python3-runs_*~pypi2deb_all.deb"

# xmod
# backend = "python3-poetry-core" to the pyproject.toml
# before running py2dsp and remove it before running dpkg-buildpackage
# need to add debian/files
# python3-xmod_1.5.0-0~pypi2deb_all.deb python optional
# xmod_1.5.0-0~pypi2deb_amd64.buildinfo python optional
py2dsp --build --github https://github.com/rec/runs
sudo bash -c "dpkg -i result/python3-xmod_*~pypi2deb_all.deb"


# inquirer
# backend = "python3-poetry-core" to the pyproject.toml
# before running py2dsp and remove it before running dpkg-buildpackage
# need to add debian/files
# python3-inquirer_1.0.3-0~pypi2deb_all.deb python optional
# inquirer_1.0.3-0~pypi2deb_amd64.buildinfo python optional
py2dsp --build --github https://github.com/magmax/python-inquirer
sudo bash -c "dpkg -i result/python3-inquirer_*~pypi2deb_all.deb"

# open-interpreter
py2dsp --build --github https://github.com/KillianLucas/open-interpreter
sudo bash -c "dpkg -i result/python3-open-interpreter_*~pypi2deb_all.deb"
