Split up client and local code.#330
Conversation
|
Doesn't this run into reserved-word issues? |
|
I'm not sure what you mean @bgrant ? |
|
I think he means the proposed use of the name On Mon, Apr 21, 2014 at 3:47 PM, Blake Griffith notifications@github.comwrote:
|
|
Oh yeah, @kwmsmith's suggestion does. |
|
I rescind my suggestion -- don't know what I was thinking... Other options besides We could abbreviate it to |
|
I'd prefer |
|
rebased |
|
But What about |
|
I like I'd like to steer away from prepositional phrases like |
|
Also, I'll hold off rebasing this until we think it is ready to merge since it will probably break again. |
|
Rebased. Did we decide what to rename |
|
@bgrant okay. Changing the name will be easier once this is in. I'll rebase it and go with |
There was a problem hiding this comment.
This isn't necessary (and it's broken -- cleanup_all takes 2 arguments).
Look at the Context._CLEANUP = (...) inside Context.__init__(). That's where the cleanup stuff is registered.
|
Rebased and working |
|
@cowlicks -- looks good. Some small comments:
Ideally we'd have just the |
|
@kwmsmith |
|
On Wed, Apr 30, 2014 at 2:58 PM, Blake Griffith notifications@github.comwrote:
It's used inside functions that are pushed locally with
Only for those that really need to be used both locally and globally.
Kurt W. Smith, Ph.D. ksmith@enthought.com |
|
Rebased |
|
I think most of the tests in |
|
... so some of the tests should also move from Otherwise, looks good to me. |
This is because dacluster should not have to impor distarray/client/ to clean things up.
Since the module distarray/client/distarray.py's name conflicts with the package name we import `absolute_import` everywhere in the file.
|
@cowlicks -- what about moving |
|
@kwmsmith oops, I thought those were already in this PR for some reason. Done. |
|
@cowlicks: what I was getting at here is that each module in directory |
|
Okay trying again. |
|
Looks good to me. |
Previously with
local/residing indistarray/*next to all the client code the client code was imported anytime we importedlocal/. This PR breaks up the package so thatlocalcode andclientcode can be imported independently. This avoihad imports from local. This breaks up the package so that
localcode andclientcode can be imported independently. This avoids some of the circular import issues we had. And avoids import client modules on the engines.The package structure is now like this
I also renamed the
client.pyfile todistarray.py.