在分发中包含 Psyco 文件

发布于 2024-10-05 06:04:53 字数 239 浏览 0 评论 0原文

我正在用 python 开发一个游戏服务器。由于该服务器分发给没有太多编码经验(或常识)的其他人,因此我尝试将任何模块包含到项目的 pre-reqs 文件夹中,以便用户可以运行代码而无需安装东西。我在我的程序上尝试了 python,并注意到速度有所提高。我尝试将 psyco 文件夹中的文件包含在 pre reqs 文件夹中,但我的用户收到有关未安装 psyco 的错误。所以现在我想知道,是否可以在我的包中包含 psyco,如果可以,需要包含哪些文件和其他内容?

I'm developing a game server in python. Since this server is distributed to other people who don't have much coding experience(or common sense) I try to include any modules I can into a pre-reqs folder in the project, so users can run the code without installing things. I tried out python on my program, and noticed a speed increase. I tried including the files from the psyco folder in the pre reqs folder, but my users got errors about psyco not being installed. So now I'm wondering, is it possible to include psyco with my package, and if so, what files and other things need to be included?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青萝楚歌 2024-10-12 06:04:53

分发 Python 包的规范方法是使用 distutils (无论如何现在)。您可以将 psyco 指定为依赖项,当人们安装您的软件包时,它将被拉入。

The canonical way to distribute Python packages is to use distutils (for now anyway). You can specify psyco as a dependency and when people install your package, it will get pulled in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文