Skip to content

package import: remove magic import line#39183

Merged
alalazo merged 6 commits intospack:developfrom
haampie:fix/drop-magic-package-import
Aug 9, 2023
Merged

package import: remove magic import line#39183
alalazo merged 6 commits intospack:developfrom
haampie:fix/drop-magic-package-import

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Aug 1, 2023

Deprecated in #30404 (Spack v0.19.0), the opaque automatic import line can probably safely be removed by now.

To be nice, Spack suggests adding from spack.package import * when NameError is raised on import.

@spackbot-app spackbot-app bot added build-environment core PR affects Spack core functionality labels Aug 1, 2023
@spackbot-app spackbot-app bot added new-version tests General test capability(ies) labels Aug 1, 2023
alalazo
alalazo previously approved these changes Aug 9, 2023
@alalazo alalazo added this to the v0.21.0 milestone Aug 9, 2023
Co-authored-by: Massimiliano Culpo <[email protected]>
alalazo
alalazo previously approved these changes Aug 9, 2023
@alalazo alalazo enabled auto-merge (squash) August 9, 2023 12:29
@alalazo alalazo merged commit 8e7c53a into spack:develop Aug 9, 2023
@haampie haampie deleted the fix/drop-magic-package-import branch August 10, 2023 10:33
@tgamblin
Copy link
Copy Markdown
Member

So an issue with this one is that we've never warned about it. We did deprecate it, but I don't think we've warned users sufficiently. We really need an easy migration path, as there are likely lots of users who have packages that were created before 0.19 and don't have anything at the top.

tgamblin added a commit that referenced this pull request Aug 10, 2023
haampie pushed a commit that referenced this pull request Aug 11, 2023
mpokorny pushed a commit to mpokorny/spack that referenced this pull request Sep 18, 2023
mpokorny pushed a commit to mpokorny/spack that referenced this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-environment core PR affects Spack core functionality new-version tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants