-
-
Save Justinfront/4c2649d7a0caa3bf591b to your computer and use it in GitHub Desktop.
Test haxe python and cython on mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
class TestCython{ | |
public static function main(){ | |
new TestCython(); | |
} | |
public function new(){ | |
trace('TestCython'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
class TestPython{ | |
public static function main(){ | |
new TestPython(); | |
} | |
public function new(){ | |
trace( 'TestPython'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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