Single-file distribution

Ultimately, deployment is about making your code available to your users: adding a dependency on bento in your package goes against it. To that goal, bento sources include a script which build a single file distribution of bento:

python tools/

This creates a bentomaker (bentomaker.exe on windows) file which contains everything needed to configure, build and install software packaged with bento. You only need to include this file in your source tarball, and that’s it – no need to install anything.

How does this work ?

The process is taken from the waf project, and is basically a simple python script which contains enough code to bootstrap itself, and a long ascii-encoded string representing the full bento code compressed in bzip2 format

Note:: as of today, most of the space is taken by windows executables. If you don’t support windows, you can strip down the size to around 120 kb:

python tools/ --noinclude-exe
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
若有不妥, 欢迎评注提醒:


订阅 substack 体验古早写作:

点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

关注公众号, 持续获得相关各种嗯哼:


关于 ~ DebugUself with DAMA ;-)
公安备案号: 44049002000656 ...::