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

Fix import failures of THAPI-spack with the latest version of spack #43

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

thilinarmtb
Copy link
Contributor

No description provided.

from spack import *


from spack.package import *
Copy link
Contributor Author

@thilinarmtb thilinarmtb Jan 31, 2025

Choose a reason for hiding this comment

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

Feels like the formatting is wrong here (missing blank lines before the class declaration).
But spack style -f didn't find any formatting errors.

Copy link
Collaborator

Choose a reason for hiding this comment

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

https://github.com/spack/spack/blob/759518182c706a92b6bd79dc691ff7d1b6abbeb2/var/spack/repos/builtin/packages/davix/package.py#L5

# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Davix(CMakePackage):

Look like is the canonical way 🤷🏽

@TApplencourt
Copy link
Collaborator

Does those change make fixed all the spack issue on polaris?

@thilinarmtb
Copy link
Contributor Author

Does those change make fixed all the spack issue on polaris?

Yes, they do. I was able to install THAPI with these changes.

@TApplencourt
Copy link
Collaborator

Nice! The CI passed, so let's merge. We can take care of the syntax formatting another time.

@TApplencourt TApplencourt merged commit 4a17e22 into main Jan 31, 2025
2 checks passed
@thilinarmtb thilinarmtb deleted the fix-import branch February 1, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants