From 1dac8d9cb44962f99e9d422fbc95ad5b465aee87 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 30 Oct 2018 11:00:20 +1030 Subject: [PATCH] Added Alpine Linux section to Suggested build environment --- Home.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 12ed698..948cc59 100644 --- a/Home.md +++ b/Home.md @@ -92,6 +92,18 @@ sudo eopkg install git gcc make zlib-devel bzip2-devel readline-devel sqlite3-de brew install bzip2 libffi libxml2 libxmlsec1 openssl readline sqlite xz zlib ``` +* **Alpine Linux:** + +```sh +apk add --no-cache git bash build-base libffi-dev openssl-dev bzip2-dev zlib-dev readline-dev sqlite-dev +``` + +Installation of Python 3.7 may fail due to Python 3.7.0 issue [#34555](https://bugs.python.org/issue34555). Work around is to install the [linux system headers package](https://pkgs.alpinelinux.org/packages?name=linux-headers&branch=edge): + +```sh +apk add linux-headers +``` + See also [Common build problems](https://github.com/pyenv/pyenv/wiki/Common-build-problems) for further information. @@ -175,4 +187,4 @@ Some of 3rd party tool like [PyInstaller](https://github.com/pyinstaller/pyinsta $ env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.0 ``` -Since pyenv (precisely, python-build) will build CPython with configuring RPATH, you don't have to set `LD_LIBRARY_PATH` to specify library path on GNU/Linux. +Since pyenv (precisely, python-build) will build CPython with configuring RPATH, you don't have to set `LD_LIBRARY_PATH` to specify library path on GNU/Linux. \ No newline at end of file