Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create browser demo for shublang #33

Open
akshayphilar opened this issue Nov 30, 2019 · 2 comments
Open

Create browser demo for shublang #33

akshayphilar opened this issue Nov 30, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@akshayphilar
Copy link
Member

No description provided.

@akshayphilar akshayphilar added the enhancement New feature or request label Nov 30, 2019
@akshayphilar akshayphilar added this to the Javascript Interop milestone Nov 30, 2019
@peonone
Copy link
Member

peonone commented Apr 29, 2020

Hi @heylouiz
I tried to integrate this branch into one internal product and it works perfectly.

Could you please add the script to generate the javascript files from python source code?
Then we can just re-run this script once there is any update made to the python files.

Thanks in advance.
cc @akshayphilar

@heylouiz
Copy link
Contributor

Hi @peonone
Sorry I missed this notification..
Unfortunately at the moment is not just a matter of running a script to generate the javascript files.
These files are generated by pyodide, this project compile python modules to webassembly and can be used in Javascript.

I forked the project and got shublang to compile, here is the fork I worked on: https://github.com/heylouiz/pyodide

I haven't worked on this for a long time, my last contribution to this project was to add lxml (one of Shublang requirements) to the main pyodide project, this was approved last month.
So the next step is to try to integrate shublang too, but I am not sure if they will accept this one day...

So, to summarize:
At the moment it is not possible to simply run a script to generate the files, pyodide project still does not have a script to compile an specific package, you need to clone the whole project and build everything...
There is an open issue regarding this, once this kind of tool is available we can do what you asked.

Let me know if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants