Skip to content

Commit cfc1094

Browse files
add pyproject.toml (#1801)
* add pyproject.toml pypa/pip#11457 * use legacy build * [CI] no need install torch everytime
1 parent 55da45c commit cfc1094

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,9 @@ jobs:
388388
pyenv global $env_name
389389
pyenv local $env_name
390390
pyenv activate $env_name
391+
bash -c "$(curl -L http://${RUNNER}/scripts/env/init_compiler.sh)" @ ${{ matrix.cuda }} ${{ matrix.torch }} $python_version
391392
fi
392-
bash -c "$(curl -L http://${RUNNER}/scripts/env/init_compiler.sh)" @ ${{ matrix.cuda }} ${{ matrix.torch }} $python_version
393+
393394
echo "== pyenv =="
394395
pyenv version
395396
echo "== python path =="

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[build-system]
2+
requires = ["setuptools >= 64",
3+
# same with requirements.txt
4+
"accelerate>=1.10.1" ,
5+
"numpy>=2.2.6" ,
6+
"torch>=2.8.0" ,
7+
"safetensors>=0.6.2" ,
8+
"transformers>=4.56.0" ,
9+
"threadpoolctl>=3.6.0" ,
10+
"packaging>=24.2" ,
11+
"device-smi==0.4.1" ,
12+
"protobuf>=6.32.0" ,
13+
"pillow>=11.3.0" ,
14+
"hf_transfer>=0.1.9" ,
15+
"huggingface_hub>=0.34.4" ,
16+
"random_word==1.0.13" ,
17+
"tokenicer>=0.0.5" ,
18+
"logbar==0.0.4" ,
19+
"wheel>=0.45.1" ,
20+
"maturin>=1.9.3" ,
21+
]
22+
build-backend = "setuptools.build_meta:__legacy__"

0 commit comments

Comments
 (0)