-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile to .pyd file #7637
Comments
I raised a same issue in Nuitka repo. Details are here: Nuitka/Nuitka#2132 |
@ustcfdm Taichi uses the |
@neozhaoliang Thanks for your suggestion. I am wondering whether there is Python API for Taichi AOT? This should also be a solution for me. |
What about using some third-party lib to obfuscate your python code? |
This is a solution, but not my preference. Since Taichi needs the source code to compile, obfuscation does not really protect code. I would prefer AOT for Python API if possible. |
The AOT module gives shader output that can be called by C++. The shader output is obfuscated but can still be analyzed by AI. So I doubt AOT is the perfect solution. |
I see. This may beyond my understanding and requirement. 😮 It will be okay as long as there is no |
@ustcfdm aha then maybe give taichi AOT a try? It currently doesn't support loading from python but writing pybind for the C++ can be pretty straightforward. |
@ailzhang It doesn't support Windows for now. I will give it a try when AOT is supported in Windows system. |
@ustcfdm btw AOT is supported on Windows ;) Feel free to give it a try and let us know if you hit any issues! |
Closing as resolved, please feel free to reopen if you have followup questions! |
Is it possible to compile taichi code into
.pyd
file? The purpose is to protect source code when I want share my program with others. I tried to compile a python file with taichi code into a pyd file using nuitka. It worked for pure python part, but raised an error for taichi part.The text was updated successfully, but these errors were encountered: