From 3aa5147ea7529e44825fd796d7fd216f0c4b8c46 Mon Sep 17 00:00:00 2001 From: Hang Date: Thu, 21 Dec 2023 02:38:29 +0800 Subject: [PATCH] Fix Alpine build doc (#2326) Signed-off-by: Hang --- INSTALL.rst | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.rst b/INSTALL.rst index 2e8a1cd51..e3dab9cb4 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -27,7 +27,7 @@ RedHat / CentOS:: Alpine:: - sudo apk add gcc python3-dev + sudo apk add gcc python3-dev musl-dev linux-headers pip install --no-binary :all: psutil Windows (build) diff --git a/setup.py b/setup.py index 1995fa055..ae25116ae 100755 --- a/setup.py +++ b/setup.py @@ -473,7 +473,7 @@ def main(): elif which('rpm'): missdeps("sudo yum install gcc %s%s-devel" % (pyimpl, py3)) elif which('apk'): - missdeps("sudo apk add gcc %s%s-dev" % (pyimpl, py3)) + missdeps("sudo apk add gcc %s%s-dev musl-dev linux-headers" % (pyimpl, py3)) elif MACOS: print(hilite("XCode (https://developer.apple.com/xcode/) " "is not installed", color="red"), file=sys.stderr)