Local development of Bob packagesΒΆ
Very often, developers of Bob packages are confronted with the need to clone repositories locally and develop installation/build and runtime code. While it is possible to use conda for such, the use of zc.buildout offers an quick and easy alternative to achieve this. It allows the creation of isolated, directory-based python development environments that can be modulated based on the development needs of the current package(s) one needs to work on.
The steps involved in creating a development environment are the following:
Checkout from gitlab the package the user wants to develop
Create a conda installation containing base packages that the current package being developed requires
Optionally, create a buildout configuration that allows the cross-development of packages
Run the application
buildout
to set-up the desired development environment
Some of these steps can be automated. bob.devtools
is a Bob package that helps with setting up the proper environment. A detailed guide for performing the mentioned steps using buildout
and bob.devtools
is available in bob development tools.