Skip to content

Commit d377b63

Browse files
committed
fixed execution error on setup.py
1 parent c2136ac commit d377b63

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
working-directory: ${{github.workspace}}/python
6767
run: |
6868
mkdir -p src/sentencepiece/package_data
69-
cp -f ../data/*.bin src/sentencepiece/package_data
69+
cp ../data/*.bin src/sentencepiece/package_data
7070
python -m cibuildwheel --output-dir wheelhouse
7171
env:
7272
CIBW_ARCHS_LINUX: auto aarch64

python/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def copy_package_data():
123123

124124
def find_targets(roots):
125125
for root in roots:
126-
if glob.glob(os.path.join(root, '*.bin')):
126+
data = glob.glob(os.path.join(root, '*.bin'))
127+
if data:
127128
return data
128129
return []
129130

0 commit comments

Comments
 (0)