Skip to content

Commit 9f35552

Browse files
committed
add compile.py/sh
1 parent 699a963 commit 9f35552

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

compile.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from distutils.core import setup
2+
from distutils.extension import Extension
3+
from Cython.Distutils import build_ext
4+
5+
ext_modules = [
6+
Extension("YourClient", ["src/YourClient.py"])
7+
]
8+
9+
setup(
10+
name='My Snake', # Inser Your Team Name
11+
cmdclass={'build_ext': build_ext},
12+
ext_modules=ext_modules
13+
)

compile.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
python3 compile.py build_ext --inplace
4+
a=`find ./ -name "*.so"`
5+
mv $a src/$a

0 commit comments

Comments
 (0)