datreant / datreant.data

convenient data storage and retrieval in HDF5 for Treants
http://datreant.org/
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

In order for package to be importable, need to make datreant namespace package #1

Closed dotsdl closed 8 years ago

dotsdl commented 8 years ago

It turns out that it might not be possible to make imports of datreant and datreant.data work cleanly without explicitly making datreant behave as a namespace package. This could be done in at least two ways:

  1. Change the core package from datreant to datreant.core (or similar), to clear the namespace of datreant on its own for the namespace package magic.
  2. Make a datreant.ex (or similar) namespace package that datreant.data and any other "extension" packages like it are imported via, which changes datreant.data to datreant.ex.data.

Neither is ideal, but this will take some playing around to figure out what actually works here.

dotsdl commented 8 years ago

There's also the option to not use the same namespace at all, but instead name something like datreant.data to datreant_data.