Nuitka / Nuitka-Action

Action to build with Nuitka on GitHub in your workflows
MIT License
111 stars 22 forks source link

Enable plugins? #2

Closed GaviTSRA closed 1 year ago

GaviTSRA commented 1 year ago

I'm getting this error: Nuitka: Need to use '--enable-plugin=tk-inter' option during compilation for tk-inter to work! And i understand what it means, but i have no clue on how to do it with this action (if it is possible?). Is there a way?

GaviTSRA commented 1 year ago

I do understand that this is not finished and there are features that nuitka has that this action doesn't provide, i just think that i may be missing something.

kayhayen commented 1 year ago

lol, I didn't even notice, that the repo is not the Nuitka one, but Nuitka-actions, sorry, this is fresh repo with little things set up so far.

I guess, we should ask Nuitka-actions uses for a link to their config in the issue template.

Ok, let me say this then. Nuitka has plugins, and you normally would have to use --enable-plugin=tk-inter if you wanted tkinter to work afterwards. Many plugins are automatically on, that one is not. It's a warning, not an error, but it should be taken serious. I assume there is a way to find out, how to enable a Nuitka plugin in the docs of this repo. If not, we need to add it.

One line of action that I see on my side, is that Nuitka provides a way of exposing all its options and have them controlled from the Yaml file (or toml file in case of pyproject, where that is already done). Right now I believe there is code that does this manually and is more a proof of concept with what is considered essential. That may well be incomplete and become outdated easily.

GaviTSRA commented 1 year ago

Well I found the plugin-dir option but I'm not sure how to use it

kayhayen commented 1 year ago

That is not it though, look for --enable-plugin equivalent. If it's not there, we have to put this one to delayed, until as I say, automatically all options are there. The option you mention is harder to use.

I think one thing that is striking @jimkring is that I feel we cannot really ask people to look at the nuitka --help output, as that is not even available anywhere. Like I said, we need to generate something there.

jimkring commented 1 year ago

@GaviTSRA This is not currently exposed by the Action -- there is not any way to enable the plugins. I'm working on a possible solution...

GaviTSRA commented 1 year ago

Ok, thanks

jimkring commented 1 year ago

@GaviTSRA Can you pleases try v0.3.2?

It allows to pass a comma separated list of plugins like this:

- uses: Nuitka/Nuitka-Action@v0.3.2
  with:
    enable-plugins: pyside6, tk-inter

Note that I haven't fully tested everything, so I may have bugs in my powershell/bash scripting. But, I think it should work.

jimkring commented 1 year ago

@GaviTSRA please try v0.3.2 -- there was a bug in v0.3.0

In your case, this should work (hopefully)

- uses: Nuitka/Nuitka-Action@v0.3.2
  with:
    enable-plugins: tk-inter
jimkring commented 1 year ago

@GaviTSRA I see you closed the issue.

I hope it works well for you and let us know how it goes