Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop requirement for setuptools as runtime dependency #2836

Merged
merged 10 commits into from
Apr 22, 2019

Conversation

boegel
Copy link
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
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
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