Skip to content

bugfix: add build system imports to new packages#50587

Merged
tgamblin merged 1 commit intodevelopfrom
bugfix-add-build-system-imports
May 21, 2025
Merged

bugfix: add build system imports to new packages#50587
tgamblin merged 1 commit intodevelopfrom
bugfix-add-build-system-imports

Conversation

@tgamblin
Copy link
Copy Markdown
Member

Since #50452, build systems are no longer in core and need their own imports.

Specifically, in addition to:

from spack.package import *

you now also need, e.g.:

from spack_repo.builtin.build_systems.python import PythonPackage

Or similar for other build systems, or things will break.

  • Fix py-deprecat package
  • Fix cryoef package

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented May 21, 2025

Hi @tgamblin! I noticed that the following package(s) don't yet have maintainers:

  • cryoef
  • py_deprecat

Are you interested in adopting any of these package(s)? If so, simply add the following to the package class:

    maintainers("tgamblin")

If not, could you contact the developers of this package and see if they are interested? You can quickly see who has worked on a package with spack blame:

$ spack blame cryoef

Thank you for your help! Please don't add maintainers without their consent.

You don't have to be a Spack expert or package developer in order to be a "maintainer," it just gives us a list of users willing to review PRs or debug issues relating to this package. A package can have multiple maintainers; just add a list of GitHub handles of anyone who wants to volunteer.

Since #50452, build systems are no longer in core and need their own imports.

Specifically, in addition to:

```python
from spack.package import *
```

you now also need, e.g.:

```python
from spack_repo.builtin.build_systems.python import PythonPackage
```

Or similar for other build systems, or things will break.

- [x] Fix `py-deprecat` package
- [x] Fix `cryoef` package

Signed-off-by: Todd Gamblin <[email protected]>
@tgamblin tgamblin force-pushed the bugfix-add-build-system-imports branch from 7f72946 to 2853dd1 Compare May 21, 2025 01:25
@tgamblin tgamblin merged commit c39725a into develop May 21, 2025
9 of 10 checks passed
@tgamblin tgamblin deleted the bugfix-add-build-system-imports branch May 21, 2025 01:26
kshea21 pushed a commit to kshea21/spack that referenced this pull request May 21, 2025
Since spack#50452, build systems are no longer in core and need their own imports.

Specifically, in addition to:

```python
from spack.package import *
```

you now also need, e.g.:

```python
from spack_repo.builtin.build_systems.python import PythonPackage
```

Or similar for other build systems, or things will break.

- [x] Fix `py-deprecat` package
- [x] Fix `cryoef` package

Signed-off-by: Todd Gamblin <[email protected]>
abhishek1297 pushed a commit to abhishek1297/spack-melissa that referenced this pull request May 22, 2025
Since spack#50452, build systems are no longer in core and need their own imports.

Specifically, in addition to:

```python
from spack.package import *
```

you now also need, e.g.:

```python
from spack_repo.builtin.build_systems.python import PythonPackage
```

Or similar for other build systems, or things will break.

- [x] Fix `py-deprecat` package
- [x] Fix `cryoef` package

Signed-off-by: Todd Gamblin <[email protected]>
kshea21 pushed a commit to kshea21/spack that referenced this pull request May 22, 2025
Since spack#50452, build systems are no longer in core and need their own imports.

Specifically, in addition to:

```python
from spack.package import *
```

you now also need, e.g.:

```python
from spack_repo.builtin.build_systems.python import PythonPackage
```

Or similar for other build systems, or things will break.

- [x] Fix `py-deprecat` package
- [x] Fix `cryoef` package

Signed-off-by: Todd Gamblin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants