Skip to content

Commit 63f2f7d

Browse files
committed
Use standard Spack import pattern
- Change 'from spack.package import *' to 'from spack import *' - This is the standard import for Spack packages - Includes CMakePackage and all other needed classes - Fixes 'No module named spack.build_systems' error
1 parent c3864d3 commit 63f2f7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packaging/spack/package.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
#
44
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55

6-
from spack.package import *
7-
from spack.build_systems.cmake import CMakePackage
6+
from spack import *
87

98

109
class Mfc(CMakePackage):

0 commit comments

Comments
 (0)