Testing your package

It is very important that the package you are building should work/install without any problem on a user's computer. Hence, you should spend time testing the package. The general idea behind testing installation is to create a virtualenv and try to install the package or use another system altogether. Any error encountered at this stage should be removed and the author should try to make sure that the exceptions are easier to follow. Exceptions should also try to provide the solution. Common mistakes at this stage would be:

  • Assumptions about preinstalled modules and libraries.
  • Developers may forget to include dependencies in the setup file. This mistake will be caught if you use a new virtualenv to test the installer.
  • Permissions ...

Get NumPy Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.