build.sh 285 Bytes
Newer Older
liuys's avatar
update  
liuys committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# 清理旧产物
rm -r build
rm -r *.egg-info
rm -rf *.so

# 编译模块
python setup.py install

# 复制编译后的库到当前目录
cp ./build/lib.linux-x86_64-cpython-310/my_pybind_ops.cpython-310-x86_64-linux-gnu.so .

# 运行测试
python test_pybind_expand.py