Skip to content

Commit cd81dff

Browse files
committed
231201
1 parent ef78f82 commit cd81dff

11 files changed

+1844
-15
lines changed

src/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def uninst_all(ver: str, py_path: str, plat: str = 'win', upper_pbar: tqdm = Non
305305

306306
# ensure tools
307307
p = subprocess.Popen(
308-
f'{py_path} -m pip install pip setuptools wheel'.split(),
308+
f'{py_path} -m pip install'.split() + NO_UNINST,
309309
stdout=subprocess.PIPE, stderr=subprocess.PIPE
310310
)
311311
popen_reader(p)

src/check_dup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from tools import get_plat_dup, get_exact_dup
2+
3+
4+
if __name__ == '__main__':
5+
get_plat_dup()
6+
get_exact_dup()

src/sha_check.py src/check_sha.py

File renamed without changes.

src/versions.py src/config_ver.py

File renamed without changes.
File renamed without changes.

src/gen_whl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_local_whl_dict(d: list) -> dict:
1616
return whl_dict
1717

1818

19-
local_whl_dict = get_local_whl_dict([WIN_WHEEL_DIR, LINUX_WHEEL_DIR])
19+
local_whl_dict = get_local_whl_dict([LINUX_WHEEL_DIR, WIN_WHEEL_DIR])
2020

2121

2222
def get_saved_sha256sums():

src/init-centos-7.sh

+10-9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ sed -e 's!^metalink=!#metalink=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!https\?://
1313

1414
# adduser kuma
1515
# passwd kuma
16+
# chown -R kuma:kuma /home/kuma
1617

1718
# ====== TOOLS ======
1819

@@ -39,7 +40,7 @@ if status is-interactive
3940
end
4041
4142
source /opt/rh/devtoolset-10/enable.fish
42-
export PATH="/home/kuma/.cargo/bin:$PATH"
43+
export PATH="/home/kuma/.cargo/bin:\$PATH"
4344
4445
alias python='/usr/local/bin/python3.12'
4546
alias python3='/usr/local/bin/python3.12'
@@ -51,7 +52,7 @@ alias kuma='su kuma'
5152
alias sudo='/usr/bin/sudo'
5253
alias apt='dnf'
5354
EOF
54-
cp /home/kuma/.config/fish/config.fish .config/fish/config.fish
55+
ln -sf /home/kuma/.config/fish/config.fish .config/fish/config.fish
5556

5657
cat << EOF >> .bashrc
5758
source /opt/rh/devtoolset-10/enable
@@ -65,16 +66,16 @@ export PATH=/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/u
6566
export MANPATH=/opt/rh/devtoolset-10/root/usr/share/man
6667
export INFOPATH=/opt/rh/devtoolset-10/root/usr/share/info
6768
export PCP_DIR=/opt/rh/devtoolset-10/root
68-
export C_INCLUDE_PATH="$C_INCLUDE_PATH:/opt/openblas/include"
69-
export CPATH="$CPATH:/opt/openblas/include"
70-
export LIBRARY_PATH="$LIBRARY_PATH:/opt/openblas/lib"
71-
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/openblas/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyn:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib"
69+
export C_INCLUDE_PATH="\$C_INCLUDE_PATH:/opt/openblas/include"
70+
export CPATH="\$CPATH:/opt/openblas/include"
71+
export LIBRARY_PATH="\$LIBRARY_PATH:/opt/openblas/lib"
72+
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:/opt/openblas/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyn:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib"
7273
export PKG_CONFIG_PATH=/opt/openblas/lib/pkgconfig:/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig:/usr/local/lib/pkgconfig
7374
EOF
7475

7576
# ====== BUILD DEPS ======
7677

77-
sudo dnf install autogen bash ca-certificates centos-release-scl cmake curl gettext git libffi-devel libjpeg-devel nano ninja-build openssl-devel wget xz zlib-devel
78+
sudo dnf install -y autogen bash ca-certificates centos-release-scl cmake curl gettext git libffi-devel libjpeg-devel nano ninja-build openssl-devel wget xz zlib-devel
7879

7980
# Pillow
8081
cd /tmp
@@ -88,7 +89,7 @@ cd ..
8889
rm -rvf libpng-1.6.40 libpng-1.6.40.tar.xz
8990

9091
# others
91-
sudo dnf -y install postgresql-devel libxml2-devel libxslt-devel unixODBC-devel freetds-devel
92+
sudo dnf install -y postgresql-devel libxml2-devel libxslt-devel unixODBC-devel freetds-devel
9293

9394
#
9495
# error "confluent-kafka-python requires librdkafka v2.3.0 or later.
@@ -197,6 +198,6 @@ tar xvzf pypy3.9.tar.gz
197198
tar xvzf pypy3.8.tar.gz
198199
cp -rvf ./usr/* /usr/
199200
rm -rvf usr pypy3.10.tar.gz pypy3.9.tar.gz pypy3.8.tar.gz
200-
# rm -f /lib64/libpypy*
201+
# rm -vf /lib64/libpypy*
201202

202203
sudo ldconfig

src/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import subprocess
77
from config import *
88
from tqdm import tqdm
9-
from versions import PYTHON_TO_PYPY
109
from gen_whl import saved_sha256sums
10+
from config_ver import PYTHON_TO_PYPY
1111

1212

1313
def get_pip_cache_dir() -> str:

src/cg_dl.py src/tools_cg_dl.py

File renamed without changes.

0 commit comments

Comments
 (0)