Skip to content

drop requirement for setuptools as runtime dependency#2836

Merged
akesandgren merged 10 commits intoeasybuilders:4.xfrom
boegel:pkgutil_namespace_
Apr 22, 2019
Merged

drop requirement for setuptools as runtime dependency#2836
akesandgren merged 10 commits intoeasybuilders:4.xfrom
boegel:pkgutil_namespace_

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 19, 2019

setuptools was only required because of the pkg_resources.declare_namespace statements that were used to declare the various easybuild.* (sub)namespaces.

There's a replacement in the Python standard library however, being __import__('pkgutil').extend_path, and it's even the recommend approach (see https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages).

One side-effect is that the __init__.py files should only contain the extend_path statement, nothing else. Because of this, some things had to be moved, i.e.:

  • the DUMMY_TOOLCHAIN_NAME and DUMMY_TOOLCHAIN_VERSION constants were moved from easybuild.tools.toolchain to easybuild.tools.toolchain.toolchain
  • the DEVEL_MODULE_SUFFIX constant was moved from easybuild.tools.module_naming_scheme to easybuild.tools.module_naming_scheme.mns
  • the ModuleNamingScheme class is no longer available from the easybuild.tools.module_naming_scheme namespace, only from the easybuild.tools.module_naming_scheme.mns namespace (cfr. changes in support for hierarchical module naming schemes #953)

@boegel boegel added the change label Apr 19, 2019
@boegel boegel added this to the 4.0 milestone Apr 19, 2019
@boegel boegel requested a review from akesandgren April 19, 2019 14:23
Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren
Copy link
Copy Markdown
Contributor

Going in, thanks @boegel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants