codrsquad / codrsquad/portable-python
Request: Add a step-by-step guide explaining how to get a portable python build on linux
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 86
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello,
Thank your your work on this tool !
I'm trying to get a portable build of python 3.10 out of portable-python and I'm probably missing something because builds are... not portable :'(
Here is what I have tried to far in docker running ubuntu:18.04
apt update && apt install python3-pip gcc make libffi-dev zlib1g-dev
pip3 install portable-python
portable-python build 3.10.9
The build succeeds but the resulting python build is linked against libffi and libz:
prefix /build/ppp-marker/3.9.16
_bz2 *absent* None
_ctypes 1.1.0 _ctypes*.so ffi:6
_curses *absent* None
_dbm *absent* None
_decimal 1.70 _decimal*.so
_gdbm *absent* None
_lzma _lzma*.so
_sqlite3 *absent* None
_ssl *absent* None
_tkinter *absent* None
_uuid *absent* None
pip 22.0.4 lib/python3.9/site-packages/pip
pyexpat 2.5.0 pyexpat*.so
readline *absent* None
setuptools 58.1.0 lib/python3.9/site-packages/setuptools
zlib 1.2.11 zlib*.so z:1
libpython*.a 67 MB lib/libpython3.9.a lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a
libpython*.so -not used-
install size 122 MB
ERROR Build failed: Uses system libs: /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libffi.so.6
INFO Compiling cpython took 6 minutes 46 seconds
INFO Overall compilation took 6 minutes 57 seconds
What should I do to get a fully portable build? And could we document that in a step-by-step how-to guide?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 portable-python build 3.10.9 入口点开始,并在 ubuntu:18.04 中重现 issue 里显示的命令。追踪生成的 build 将 /lib/x86_64-linux-gnu/libz.so.1 和 /usr/lib/x86_64-linux-gnu/libffi.so.6 报告为系统库的原因。完成标准是提供一份分步 how-to,说明如何生成完全 portable 的 Python build。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system, documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 半天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100