您如何组织Python模块? [英] How do you organize Python modules?
本文介绍了您如何组织Python模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在组织python模块时,我的Mac OS X系统一团糟.我的硬盘上到处都有程序包,而没有用于组织它们的特定系统.
When it comes to organizing python modules, my Mac OS X system is a mess. I've packages lying around everywhere on my hdd and no particular system to organize them.
您如何使一切易于管理?
How do you keep everything manageable?
推荐答案
我的建议
- 阅读安装Python模块.
- 阅读分发Python模块.
- 从 setuptools 开始使用easy_install.阅读setuptools的文档.
- 始终使用 virtualenv .我的站点软件包目录仅包含 setuptools和virtualenv .
- 查看Ian Bicking的新项目 Ian Bicking 正在进行中.永远都是善良.
- 创建自己的软件包时,请使用distutils/setuptools.考虑使用
paster create
(请参阅 http://pythonpaste.org )创建初始目录布局.
- Read Installing Python Modules.
- Read Distributing Python Modules.
- Start using easy_install from setuptools. Read the documentation for setuptools.
- Always use virtualenv. My site-packages directory contains setuptools and virtualenv only.
- Check out Ian Bicking's new project pyinstall.
- Follow everything Ian Bicking is working on. It is always goodness.
- When creating your own packages, use distutils/setuptools. Consider using
paster create
(see http://pythonpaste.org) to create your initial directory layout.
这篇关于您如何组织Python模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文