Skip to content

Commit e9f1cfd

Browse files
authored
Avoid hidden circular dependencies in spack.architecture (spack#25873)
* Refactor platform etc. to avoid circular dependencies All the base classes in spack.architecture have been moved to the corresponding specialized subpackages, e.g. Platform is now defined within spack.platforms. This resolves a circular dependency where spack.architecture was both: - Defining the base classes for spack.platforms, etc. - Collecting derived classes from spack.platforms, etc. Now it dopes only the latter. * Move a few platform related functions to "spack.platforms" * Removed spack.architecture.sys_type() * Fixup for docs * Rename Python modules according to review
1 parent 060582a commit e9f1cfd

File tree

23 files changed

+492
-478
lines changed

23 files changed

+492
-478
lines changed

lib/spack/docs/developer_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Spec-related modules
211211
yet.
212212

213213
:mod:`spack.architecture`
214-
:func:`architecture.sys_type <spack.architecture.sys_type>` is used
214+
:func:`architecture.default_arch <spack.architecture.default_arch>` is used
215215
to determine the host architecture while building.
216216

217217
.. warning::

0 commit comments

Comments
 (0)