Skip to content

Make the integration work "out of the box" #21

Closed
@exodrifter

Description

@exodrifter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions