4 Handling package dependencies, entry points, and extensions

This chapter covers

  • Defining dependencies for your package
  • Making functionality available as command-line tools
  • Packaging extensions written in C

You’re just getting ready to start adding your groundbreaking functionality into your Python package for CarCorp when they call with a few last-minute requests. They want you to make sure it’s really fast and that it can be run as a standalone command because their developers aren’t as well-versed in Python as you are. You haven’t even delivered the first version of your package yet, and already the requirements are growing! Before you panic, take a deep breath and read this chapter to learn more.

Important You can use the code companion ...

Get Publishing Python Packages 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.