ScriptEditor CPython and Package Manager

@eirannejad I have a wish for CPython for rhino.

Wish: when you install a plugin via package manager created using CPython I would like to trigger install of pip packages. Please make it possible.

Why?
Compiled plugins in C# and C++ are one click installations. But python is not. Through dozens of cases, python pip through command line or #r package installation for users, not developers just is a bit of a nightmare for any code related stuff. You just want to install your plugin using one click. I just have an experience from multiple workshops, multiple emails from peoples who are users. Please help us to deliver Python rhino plugins that would work without a need to open scripteditor.

2 Likes

@Petras_Vestartas

So if you build Rhino/Grasshopper plugins from your scripts using the Script Editor, the pip or nuget packages specified inside the scripts will get installed when the command is executed or the component used on the target machine.

Not sure if you have seen these two pages:

@eirannejad

Yes, I am familiar with the installation.

But when you install a python package from yak, rhino does not install dependencies .
You need to include #r package name in a rhino command, but this is exactly the reason to ask the question.

I dont want to include #r in any of the code, it should install once from pip, when I click install in the package manager.

Current workflow does not do this, or am I missing something?

I see. What’s the reason for not wanting #r in your script?

I think this is about improving the user experience so you only have to wait the one time during installation instead of waiting when you run the script for the first time.

1 Like

Exactly @eirannejad @stevebaer .

Please make it possible :pray: . User experience.

For instance if .yml would be included into yak that would trigger installation would work perfectly for package distribution upon click “install”.

At ethz we do this, but I am not asking to support conda, but only python pip packages:

name: iass2024
channels:

  • conda-forge
    dependencies:
  • git
  • python ==3.10
  • pip
  • compas_occ ==1.2.1
  • compas_viewer >=1.3
  • pip:
    • compas ==2.4.0
    • compas_fd
    • compas_ifc

Ok Created a ticket for this here:

YAK-330 Implement rhinocode package install in yak

2 Likes

Thank you. Looking forward to it.

By the way link is broken:)

OOops forgot to set the visibility. Fixed

1 Like

@eirannejad Any update of the issue? Even an experimental? :slight_smile: