I had to create a deb file from a Python package, so make a note of the procedure
#apt-get install python-stdeb
This time, deb the common component around the DB of OpenStack called oslo.db-1.0.2
$wget https://pypi.python.org/packages/source/o/oslo.db/oslo.db-1.0.2.tar.gz
Execute py2dsc with the DL file as an argument
$py2dsc oslo.db-1.0.2.tar.gz
A folder called deb_dest will be created
$ls
deb_dist oslo.db-1.0.2.tar.gz
Run dpkg-buildpackage under deb_dest / oslo.db-1.0.2
$cd deb_dist/oslo-db-1.0.2
$dpkg-buildpackage -rfakeroot -uc -us
$cd ..
$ls
oslo-db-1.0.2 oslo-db_1.0.2-1_amd64.changes oslo-db_1.0.2-1.debian.tar.gz oslo-db_1.0.2-1.dsc oslo-db-1.0.2.orig oslo-db_1.0.2.orig.tar.gz python-oslo.db_1.0.2-1_all.deb
Then the deb file is added.
After that, you can install it with dpkg -i
and feel free to do anything.
Recommended Posts