Skip to content

Packaging issue: modules not visible #91

Closed
@oesteban

Description

@oesteban

It seems modules (i.e., python files) are not automatically visible in their package (e.g., nitransforms.io, unless explicit imports are set in the __init__.py of the package.

In other words, this code:

from nitransforms.manip import TransformChain

doesn't work, unless we add the line

from . import manip

to nitransforms/__init__.py.

I might be misinterpreting how the default packaging works, but I believe we have some bad setting in the setup.cfg instead.

I know @effigies has dealt quite a bit with setuptools, pep517, etc. - any quick ideas of why this is happening? or this is actually not a bug?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions