Is there a way to bundle multiple packages together with Python setuptools?

Viewed 2574

I have packages A and B, both have their own git repository, PyPI page, etc... Package A depends on package B, and by using the install_requires keyword I can get A to automatically download and install B.

But suppose I want to go a step further for my especially non-savvy users; I want to actually include package B within the tar/zip for package A, so no download is necessary (this also lets them potentially make any by-hand edits to package B's setup.cfg)

Is there a suggested (ideally automated) way to,

  • Include B in A when I call sdist for A
  • Tell setuptools that B is bundled with A for resolving the dependency (something like a local dependency_links)

Thanks!

1 Answers
Related