-
Notifications
You must be signed in to change notification settings - Fork 333
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
Don't embed Python packages in workerd. #1580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1d8c348
to
f8d4b49
Compare
When I run this, it seems that it entirely breaks package loading in workerd. But this is probably acceptable in the short term to get the binary size down. I can manually revert this to do my tests... |
f8d4b49
to
abb41c6
Compare
@hoodmane can you try again? |
I added an extra commit which fixes all the examples. |
@@ -23,7 +23,8 @@ const config :Workerd.Config = ( | |||
const mainWorker :Workerd.Worker = ( | |||
modules = [ | |||
(name = "worker", pythonModule = embed "./worker.py"), | |||
(name = "fastapi", pythonRequirement = "fastapi"), | |||
(name = "fastapi==0.103.2", pythonRequirement = ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will merge this, but I don't think we want to support version numbers and operators in here
Just a simple way to disable embedding of Python packages only in workerd to reduce its binary size.