I have been developing several Glyphs plugins that require external Python dependencies (examples include NumPy, Pillow, Mido). I understand from this topic that I can symlink or manually add the paths to the libraries. However, the above packages are not simply single folders that I can locate and copy. For example, Mido has other dependencies that I am not completely familiar with, so I wouldn’t know which libraries I would need; NumPy is compiled so it contains non-Python libraries which are scattered in different places.
I could install a custom version of Python, install pyobjc and these libraries and change the version in Preferences. However, I don’t think this is easy to follow for non-developers and any end-user.
All this is to say that I wish there could be a better way to install and manage packages for the Glyphs version of Python. The back-end of it should be relatively straightforward as Pip already does all the dependency management.
In the meantime, is there any way to install packages into Glyph’s version of Python?
Hi thanks! I was wondering if there is an easier method to install packages - say, if I want a non-developer user to use my plugin. Could there be a simple GUI for pip?