archlinuxcn / repo

Arch Linux CN Repository
1.48k stars 282 forks source link

Python 3.8 rebuild #1378

Closed lilydjwg closed 4 years ago

lilydjwg commented 4 years ago

问题类型 / Type of issues

受影响的软件包 / Affected packages


Package list generated by:

sudo pkgfile -u
pkgfile -d "/usr/lib/python3.7/site-packages/" | awk -F/ '$1 == "archlinuxcn" { print "* [ ] " $2 }' | scripts/at-maintainer | sort -k5
yan12125 commented 4 years ago

python-onnx (@hubutui)

It does not build as mxnet fails. As mxnet is just an optional dependency, it should be safe to be removed from repo_depends of python-onnx/lilac.yaml.

hubutui commented 4 years ago

@yan12125 But check() will need mxnet, without mxnet it will fail. And python-nbval is not updated yet, and no python alias added to python-nbval.

yan12125 commented 4 years ago

But check() will need mxnet, without mxnet it will fail.

Is it still the case? Just tried it, and check() passes with locally-rebuilt python-nbval.

And python-nbval is not updated yet, and no python alias added to python-nbval.

Sorry my fault here. I've updated python-nbval in https://github.com/archlinuxcn/repo/commit/4ef38febf6bc5c4206fc91d05e2363ec59da15f7#diff-93dfdb74ae35a7b19e2e08be14abbfb1.

lilydjwg commented 4 years ago

@SilverRainZ 你的 python-pydle 上次没 rebuild 成功,因为新版本 pydle 没提供源码包。我已经更新 pypi_pre_build 加入了 whl 的支持,你可以再更新一下。

Sasasu commented 4 years ago

是不是应该提醒一下 felixonmars,qt 写的 albert 也需要 rebuild,。里面有个 python 插件支持,链了 libpython.so

-> pacman -Si albert
Repository      : community
Name            : albert
Version         : 0.16.1-1
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Sat Feb 23 01:11:10 2019
-> readelf -d /usr/lib/albert/plugins/libpython.so | grep python3
0x0000000000000001 (NEEDED)             Shared library: [libpython3.7m.so.1.0]
lilydjwg commented 4 years ago

@felixonmars 呀。我没查库所以会有这种遗漏。

SilverRainZ commented 4 years ago

@SilverRainZ 你的 python-pydle 上次没 rebuild 成功,因为新版本 pydle 没提供源码包。我已经更新 pypi_pre_build 加入了 whl 的支持,你可以再更新一下。

感谢,看起来编译过了。

yan12125 commented 4 years ago

是不是应该提醒一下 felixonmars,qt 写的 albert 也需要 rebuild,。里面有个 python 插件支持,链了 libpython.so

你該更新啦,目前版本 community/albert 0.16.1-2 是連結到python 3.8的

$ readelf -d /usr/lib/albert/plugins/libpython.so | grep python3
 0x0000000000000001 (NEEDED)             共享函式庫:[libpython3.8.so.1.0]

官方包是會同時檢查/usr/lib/python3.X和libpython3.X.so的 [1]。

另外,針對[archlinuxcn]跑了下who_depends_this_lib

gdb-multiarch-8.3-1: usr/bin/gdb-multiarch (libpython3.7m.so.1.0)
moonplayer-2.9-1: usr/bin/moonplayer (libpython3.7m.so.1.0)
vmware-workstation-15.5.0-1: usr/lib/vmware-installer/3.0.0/sopython/libpy37.so (libpython3.7m.so.1.0)
vmware-workstation-macos-15.5.0-1: usr/lib/vmware-installer/3.0.0/sopython/libpy37.so (libpython3.7m.so.1.0)

找出了幾個不在上方列表的包:

(vmware-workstation{,-macos} has bundled libpython3.7m.so.1.0)

PS: emacs-git這個包用zstd打包,但是Python還不支援,所以需要對who_depends_this_lib下patch: https://github.com/archlinuxcn/misc_scripts/pull/16.

[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk/genrebuild?h=packages/python

lilydjwg commented 4 years ago

打个 python-zstandard 包,然后就可以支持 .tar.zst 了~

Xuanwo commented 4 years ago

All my packages have been updated.

Xuanwo commented 4 years ago

autojump-git updated too.

de-conf commented 4 years ago

mycli 依旧没有修复!

mycli 1.20.1-2
python 3.8.0-1
python-click 7.0-3
python-configobj 5.0.6-6
python-cryptography 2.8-1
python-prompt_toolkit-gns3 1.0.15-3
python-pygments 2.5.2-1
python-pymysql 0.9.3-5
python-sqlparse-cli_helpers 0.2.4-2
python-cli_helpers 1.2.1-4
yan12125 commented 4 years ago

mycli 依旧没有修复!

Here is the timeline:

@Sasasu @masakichi Apparently #1399 should be applied to litecli only, not mycli.

yan12125 commented 4 years ago

I updated the list and marked updated packages as done as well as added packages that link to old libpython.so.

Sasasu commented 4 years ago

@de-conf 我去掉了 python_sqlparse_helper 的依赖,但理论上 mycli 可以工作。

但我建议用 pipsi 来安装 python 写的 cli 工具,pipsi 会把软件装载 virtualenv 里面,和其他 python 依赖隔离。python-sqlparse 版本冲突不是一次两次了 = =

sudo pacman -S python-pipsi
sudo pacman -R python-mycli
pipsi install mycli

安装完成后 mycli 位置是 ~/.local/bin/mycli 可以把它 ln 到 /bin 里或者可以把 ~/.local/bin 加入 PATH

de-conf commented 4 years ago

@de-conf 我去掉了 python_sqlparse_helper 的依赖,但理论上 mycli 可以工作。

但我建议用 pipsi 来安装 python 写的 cli 工具,pipsi 会把软件装载 virtualenv 里面,和其他 python 依赖隔离。python-sqlparse 版本冲突不是一次两次了 = =

sudo pacman -S python-pipsi
sudo pacman -R python-mycli
pipsi install mycli

安装完成后 mycli 位置是 ~/.local/bin/mycli 可以把它 ln 到 /bin 里或者可以把 ~/.local/bin 加入 PATH

已在使用python venv,但是总感觉虚拟环境不爽,可能心理因素吧,23333

oowl commented 4 years ago

All my packages have been updated.

lilydjwg commented 4 years ago

The only pending package is moonplayer maintained by @heavysink now.

yan12125 commented 4 years ago

The only pending package is moonplayer maintained by @heavysink now.

Apparently upcoming moonplayer 3.0 no longer links to libpython*.so.

@lilydjwg Did you push m64py and python-pysdl2? On repo.archlinuxcn.org these two packages still have files in /usr/lib/python3.7/site-packages.

lilydjwg commented 4 years ago

Oops, I was wrong. I looked at packages from other repos.

I wonder if @frealgagu is still active?

heavysink commented 4 years ago

moonplayer大改完毕,等打包了

yan12125 commented 4 years ago

Both mycli and moonplayer are fixed.

yan12125 commented 4 years ago

The last two packages, python-pysdl2 and m64py, are updated/rebuilt in 29530a3ecc6645e658132ef73d9ee6fc9f27092f and 0732c5fad290599987e989976b9a59cb3dd2c206 (for https://github.com/archlinuxcn/repo/issues/1519), respectively.

yan12125 commented 4 years ago

打个 python-zstandard 包,然后就可以支持 .tar.zst 了~

@lilydjwg Could you install python-zstandard (now in [community]!) on build.archlinuxcn.org?

lilydjwg commented 4 years ago

python-zstandard Installed.

yan12125 commented 4 years ago

Thanks!