Skip to content

Commit 85edc72

Browse files
committed
chrpath
1 parent 724a627 commit 85edc72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mkdist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
dist_info_dir = '{0}-{1}.dist-info'.format(Name, args.version)
6666
os.makedirs(dist_info_dir, exist_ok=True)
6767

68+
# 修改so
69+
if args.platform == 'Linux':
70+
os.system("chrpath -r '$ORIGIN/Qt/lib' ./tmp/PyQt5/QtWebKit.so")
71+
os.system("chrpath -r '$ORIGIN/Qt/lib' ./tmp/PyQt5/QtWebKitWidgets.so")
72+
6873
info_files = []
6974
# 遍历需要安装的文件
7075
pyqt_dir_path = 'tmp'

0 commit comments

Comments
 (0)