Based on what I’ve read, it’s possible to install other packages onto IronPython using pip and ipy.exe, using the Command Prompt with Administrator Access. However, these (pip and ipy.exe) appear to not be built in with the IronPython that ships with Rhino 5. My current workaround is that I install another version of IronPython 2.7.5 in C:\Program Files(x86), then do what @stevebaer does in his post here about enabling Frames (link here) and install mpmath, future and enum there using Command Prompt with admin access, pip and ipy.exe.
Then I link the paths of Rhino Python to these files, as follows (I’m referring to the lines with 'C:\Program Files (x86)\IronPython 2.7\ ):
I’m aware that this isn’t a very robust workaround, especially if I’d like to install my package on other computers, due to the number of steps. How would one then go about installing mpmath, enum and future directly into the IronPython shipped with Rhino without using Command Prompt, pip and ipy.exe? My goal is to build a setup module that does everything for the user without them having to go through so many steps such as using Command Prompt, etc. which would make it easier to share our package. I.e. the setup module would work like a Grasshopper component (drag and drop, then it does all the package downloading and putting them into the right locations) or like a widget (a normal installation application).
My colleague has built a setup module to help with this. I’m uploading the relevant part here, in case it helps illustrate my question better: sample_setup.txt (1.3 KB)
Any suggestions are much appreciated. Thanks!