Skip to content

Commit abfd5a9

Browse files
committed
Hacking the github workflow to work with the setup.py
1 parent c364b2c commit abfd5a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
3535
- name: Check package install
3636
run: |
37+
sudo sed -i 's|if os.path.exists(cpu_benchmark_path):|if True:|' ./setup.py
3738
pip install .
3839
3940
- name: Run tests

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def run(self):
3434
# Conditionally include cpu-benchmark if it exists
3535
data_files = []
3636
cpu_benchmark_path = 'bin/cpu-benchmark'
37-
if True:
38-
#if os.path.exists(cpu_benchmark_path):
37+
if os.path.exists(cpu_benchmark_path):
3938
data_files.append(('bin', [cpu_benchmark_path]))
4039

4140
setup(

0 commit comments

Comments
 (0)