Commit Graph

10 Commits

Author SHA1 Message Date
Justin Israel 8ab2cac131
main,bind,_examples: use absolute package imports and make configurable
This CL fixes an issue with the way python import statements are generated using an realtive current directory approach that is no longer compatible with python3. The default behavior has been updated to default to a dot-relative absolute package import for "go" and compiled extension, and a configuration option has been exposed from the CLI flags down to the bind package.
A refactor of configuration options was added to avoid further expanding the number of arguments being passed through the system.

Fixes go-python/gopy#239
2021-03-17 22:02:07 +01:00
Randall C. O'Reilly 780132b629 final update of goki -> go-python -- my pass should be complete here and now just awaiting final review for PR merge. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 7d8693d293 copy function for slices, and general fixes for gi, emergent, both of which are working well 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 073a7f9649 exe mode working well; needed error checking / printing for PyObject_CallObject callbacks.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 737fe7c66d few more minor fixes 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 8c4f9979b4 added exe command mode -- builds an executable that has all the go packages built-in and can interpreter in non-main thread. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 3d40f84d02 GoPyInitRunFile runs a file (name set using *Set function) using Py_MainRun -- works for GoGi event loop blocking main thread finally.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 782d3b74c8 more fixes to exclude various things -- excluding python keywords for example. gi now loads and tries to run - might work on linux, but mac requires main thread for loop. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly cf18fcbf00 major reorg to support multi-packages in one .so all working -- emergent mostly working. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly d8e3ff78f9 added pkg command, does full recursive generate for entire package -- figured out how to navigate python packages finally.. 2019-08-24 10:31:16 +02:00