Skip to content

Add missing distutils to fix builds on some architectures#426

Merged
tianon merged 1 commit into
TryGhost:masterfrom
infosiftr:distutils
Dec 12, 2024
Merged

Add missing distutils to fix builds on some architectures#426
tianon merged 1 commit into
TryGhost:masterfrom
infosiftr:distutils

Conversation

@yosifkit

@yosifkit yosifkit commented Dec 12, 2024

Copy link
Copy Markdown
Contributor

Like arm32v7 and arm32v6

  File "/var/lib/ghost/versions/5.104.2/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
    from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'

This broke because Alpine 3.20 (bump) is using Python 3.12. So, related to docker-library/python#952; setuptools (and distutils) are not included by default in Python 3.12+.

Like arm32v7 and arm32v6

```
  File "/var/lib/ghost/versions/5.104.2/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
    from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'
```
@tianon tianon merged commit bc00f69 into TryGhost:master Dec 12, 2024
@tianon tianon deleted the distutils branch December 12, 2024 18:39
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Dec 12, 2024
Changes:

- TryGhost/docker-library-ghost@bc00f69: Merge pull request TryGhost/docker-library-ghost#426 from infosiftr/distutils
- TryGhost/docker-library-ghost@371ce7b: Add missing distutils to fix builds on some architectures
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