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

pygbag #3

Open
pmp-p opened this issue Feb 3, 2023 · 5 comments
Open

pygbag #3

pmp-p opened this issue Feb 3, 2023 · 5 comments

Comments

@pmp-p
Copy link
Member

pmp-p commented Feb 3, 2023

https://pypi.org/project/pygbag

https://github.com/pygame-web/pygbag

--

pygbag should be able to package from web for people that cannot install module or python , or have too old python on their workstation or mobile/smart devices.

@andreagalle
Copy link

andreagalle commented Jun 9, 2023

I have been able to use pygbag in this scenario , in particular:

  • within a Docker container
  • within a GitHub codespace

I will open ASAP couple of PR to include these changes in the main repo. OK?

@pmp-p
Copy link
Member Author

pmp-p commented Jun 11, 2023

I will open ASAP couple of PR to include these changes in the main repo. OK?

Sure anything that can help people packaging for web when they are stuck on device where capabalities have been limited is very welcome.

@andreagalle
Copy link

Concerning running it on GitHub Codespaces, it was running like a charm before Summer, then something broke: once it tries to GET the archives/0.8/pythons.js resource, I get the folllowing error

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The question is: how can I set this header for this particular resource, since it is actually set for other resources as well as archives/0.8/pythonrc.py or archives/0.8//browserfs.min.js

andreagalle added a commit to andreagalle/pygbag that referenced this issue Sep 26, 2023
Not to skip anytime this branch in the IF/ELIF statemements. This issue (that is a bug) was casing not properly setting for example the CORS response headers, causing issues retrieving `*.js` resources as reported here: pygame-web/pkg-porting-wasm#3 (comment)
@pmp-p
Copy link
Member Author

pmp-p commented Sep 26, 2023

Try 0.8.1 for your use case. and if it works fine we will make a conditionnal + a cmd line option beetween 0.8.1 and 0.8.2 for 0.8.3 to cover all cases.

PS: maybe you could document basic GitHub Codespaces usage on wiki ?

@andreagalle
Copy link

andreagalle commented Sep 26, 2023

I tried it out and unfortunately it is not working: thus, I already opened another PR pygame-web/pygbag#119 with a couple questions.

Of course I will document on Codespaces usage on wiki, please could you even renew your past invitation (here below)? Unfortunately it expired, but I would like to join the https://github.com/pygame-web organization, but I wanted to!

image

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

2 participants