nucleic / enaml

Declarative User Interfaces for Python
http://enaml.readthedocs.io/en/latest/
Other
1.53k stars 130 forks source link

How to package enaml application with nuitka #451

Open keinagae opened 3 years ago

MatthieuDartiailh commented 3 years ago

I have no experience with nuitka so I am not sure how much I can help. enaml files are converted upon import into valid Python bytecode that is then stored in the enamlc cache files. If you have a way to convince nuitka to use sourceless cache files not ending in .pyc it may be a first step forward.

If you could post a minimal setup of what you are trying to achieve it could try to have a look.

keinagae commented 3 years ago

While i was try to use it with nuitka problem is where we import nuitka files into python code as nuitka compiles python and while compiling lets say if our ui file is ui.enaml it will think that there is python module nammed ui so is it possible to compile enaml file to some python file

keinagae commented 3 years ago

If we can do that then generated file should be a valid python package and every thing should work then

MatthieuDartiailh commented 3 years ago

As I said you can obtain valid bytecode but I never tried to decompile it to source. Feel free to look into it.