4

I am wanting to create a suite of interrelated packages in Python. I would like them all to be under the same package but installable as separate components.

So, for example, installing the base package would provide the mypackage but there would be nothing in mypackage.subpackage until I install it separately.

Is this possible with distutils and pip?

Ned Deily
  • 83,389
  • 16
  • 128
  • 151
Rob Young
  • 1,235
  • 11
  • 19
  • possible duplicate of [How do I create a namespace package in Python?](http://stackoverflow.com/questions/1675734/how-do-i-create-a-namespace-package-in-python) – plaes Jul 31 '12 at 07:11
  • @plaes, `namespace` is only one of possible hacks. Is it possible to do this without namespaces? – anatoly techtonik Nov 01 '14 at 12:01

1 Answers1

5

What you are looking for is called "namespace packages", see this SO question

Community
  • 1
  • 1
Steven
  • 28,002
  • 5
  • 61
  • 51