It is almost always the best choice to name the binary package and the source package the same. This guide is based on the official documentation of dh-virtualenv, which is based on the 3.9.5 guide from Debian. It indicates which guide you are following. The standards version is mostly for human consumption.The build-depends field indicates that you need debhelper, python, and dh-virtualenv to build the package: the package build process will make sure those dependencies are installed at package build time.It does not have to be your personal e-mail, though - "Infrastructure Team ", for example, if the package is maintained by the team and you would like issues to be sent to the team's mail alias. It is highly recommended to put real contact details in the Maintainer field.The extra Priority value is the right priority for 3rd party packages like this one.It's meaningful to provide information to the guided UI installer, which is not relevant for this package. the section value is mostly meaningless for our case, but needs to be there.Lines 9–13 are the control information for the binary package." "Lines 1–7 are the control information for the source package. So what is all this information about? As the Debian documentation puts it: Since this is a local, unofficial, packaging of HTTPie, I called it myhttp. Next, let's create some files inside myhttp to provide metadata to the Debian build system.įirst, create the debian/control file: Source: myhttpīuild-Depends: debhelper (>= 9), python3.7, dh-virtualenv (>= 0.8) Now, create a directory to keep the sources. While the devscripts package is not required, it will simplify doing the subsequent operations. dh_virtualenv's documentation provides all of the installation options. On my Debian-based system, I entered: apt-get install dh-virtualenv devscripts Packaging with dh_virtualenvįirst, you need to install the tools that dh_virtualenv needs. In this article, I will explain how to use it with the example of building a package containing the HTTPie tool to test HTTP APIs from the command line without having to activate a virtual environment. deb package that wraps a Python virtual environment around an application and deploys it upon installing. One way to make Python applications installable on Debian-based operating systems (such as Debian or Elementary OS) is by using the dh_virtualenv tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |