Skip to content

Instantly share code, notes, and snippets.

@Justinfront
Created May 3, 2014 01:53
Show Gist options
  • Save Justinfront/4c2649d7a0caa3bf591b to your computer and use it in GitHub Desktop.
Save Justinfront/4c2649d7a0caa3bf591b to your computer and use it in GitHub Desktop.
Test haxe python and cython on mac.
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