demo: don't use symlinks for x/tools compatible

This commit is contained in:
Li Jie
2024-12-31 19:54:30 +08:00
parent 03b469212e
commit c602038597
14 changed files with 254 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
package pymod1
/*
#cgo pkg-config: python3-embed
#include <Python.h>
*/
import "C"
func Float(f float64) *C.PyObject {
return C.PyFloat_FromDouble(C.double(f))
}