您如何组织Python模块? [英] How do you organize Python modules?

查看:73
本文介绍了您如何组织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?

推荐答案

我的建议

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆