Make the integration work "out of the box" #36
exodrifter
started this conversation in
Ideas
Replies: 2 comments
-
Thank you very much! Your work is much needed! May I know the ETA of this integration update? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Lingfeng158 I work on this in my free time so I'm unable to give an ETA. I've been thinking about this issue for quite a while, thank you for expressing interest. ❤️ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, the Python standard library is not included in the build. The reason for this is because the IronPython library only exposes a method for loading python libraries from the disk (as far as I know). We can accomplish this by putting the Python library in the
StreamingAssets
folder, but this is a security problem since the library can be trivially edited by any user to do whatever they might want. This is the main reason for why the included python library in unity-python doesn't work in builds right out of the box.Several issues are affected by this problem:
I did find an approach that looks appealing recently... It might be possible to compile the Python libraries into DLLs.
If this works the way I think it does, then I can make an interface for installing Python libraries which fetches the package from
pip
, compiles it into a DLL, and then adds it to your project. This would fix all of the aforementioned issues.However, it would be best to keep in mind that Python 2 is being deprecated on January 1st, 2020 with
pip
to follow suit shortly after. I have never tested the library as it stands today with Python 3 (and I don't have any reason to believe it will work). So, perhaps this work will have to wait until the library is ported to work with Python 3.Beta Was this translation helpful? Give feedback.
All reactions