Skip to content

Commit

Permalink
add compile.py/sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Arefsa78 committed Sep 8, 2019
1 parent 699a963 commit 9f35552
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compile.py
Original file line number Diff line number Diff line change
@@ -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
)
5 changes: 5 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

python3 compile.py build_ext --inplace
a=`find ./ -name "*.so"`
mv $a src/$a

0 comments on commit 9f35552

Please sign in to comment.