codrsquad / codrsquad/portable-python
Request: Add a step-by-step guide explaining how to get a portable python build on linux
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
エントリーポイント portable-python build 3.10.9 から始め、ubuntu:18.04 内で issue に示されているコマンドを再現します。生成されたビルドが /lib/x86_64-linux-gnu/libz.so.1 と /usr/lib/x86_64-linux-gnu/libffi.so.6 をシステムライブラリとして報告する理由を追跡します。完全なポータブル Python ビルドを生成する方法を手順ごとに説明する how-to ができれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system, documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 半日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100