Skip to content

Instantly share code, notes, and snippets.

@savage69kr
Forked from Justinfront/TestCython.hx
Created May 9, 2014 14:45
Show Gist options
  • Save savage69kr/8054771750370384df02 to your computer and use it in GitHub Desktop.
Save savage69kr/8054771750370384df02 to your computer and use it in GitHub Desktop.
package;
class TestCython{
public static function main(){
new TestCython();
}
public function new(){
trace('TestCython');
}
}
-main TestCython
-python testcython.py
-dce full
--next
-cmd cython --embed -o TestCython.c TestCython.py
-cmd gcc -Os -I /opt/local/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -o TestCython TestCython.c -L /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/ -lpython3.4 -lpthread -lm -lutil -ldl -m64 -fPIC
-cmd ./TestCython
package;
class TestPython{
public static function main(){
new TestPython();
}
public function new(){
trace( 'TestPython');
}
}
-python Testpython.py
-cp src
-main TestPython
-dce full
--next
-cmd python Testpython.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment