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

How to use this project with other libraries ? #11

Open
kracekumar opened this issue Mar 24, 2013 · 8 comments
Open

How to use this project with other libraries ? #11

kracekumar opened this issue Mar 24, 2013 · 8 comments

Comments

@kracekumar
Copy link

Can you explain the process how the this code was generated? Is Cpython code converted using emscripten? if so can you please explain the steps.

In order to use empythoned in my project, is it enough to load dist/worker.js in my html and which will load dist/python.opt.js?

@kracekumar
Copy link
Author

I am able to use js in dist, here is the demo https://github.com/kracekumar/test-empythoned, just wanted to know how to convert CPython to js.

@kracekumar
Copy link
Author

@nightpool: I got that, but I am looking for converting CPython to JS. emcc takes single file, looking how to convert entire code base.

@nightpool
Copy link

Use the build script in the main directory?

EDIT: Oops, I just deleted my last comment. Here's what was in it, for posterity:
What empythoned converts is the CPython interpreter. You can then use that to run (in the browser) arbitrary javascript (ED: typo) python code.

@kracekumar
Copy link
Author

Thanks @nightpool .

@kracekumar kracekumar reopened this Apr 2, 2013
@kracekumar
Copy link
Author

Seems issue with empythoned build script. emscripten-core/emscripten#1011

@astromme
Copy link

I am having the same problem that kracekumar is having when I try and use empythoned from a chrome app.

@kracekumar
Copy link
Author

@astromme I was able to create chrome extension offline-python, but import statement fails.

@astromme
Copy link

Yes, thats what I mean. I did a little bit of digging, and I think there is some bug in how chrome packaged apps and extensions handle the emscripten FS.

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

No branches or pull requests

3 participants