diff --git a/compile.py b/compile.py new file mode 100644 index 0000000..6d77a26 --- /dev/null +++ b/compile.py @@ -0,0 +1,13 @@ +from distutils.core import setup +from distutils.extension import Extension +from Cython.Distutils import build_ext + +ext_modules = [ + Extension("YourClient", ["src/YourClient.py"]) +] + +setup( + name='My Snake', # Inser Your Team Name + cmdclass={'build_ext': build_ext}, + ext_modules=ext_modules +) diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..79056ad --- /dev/null +++ b/compile.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 compile.py build_ext --inplace +a=`find ./ -name "*.so"` +mv $a src/$a \ No newline at end of file