简体   繁体   English

我有一系列要放入包装中的python模块,我该怎么做?

[英]I have a series of python modules I would like to put into a package, how can I do this?

I have a series of python modules I would like to put into a package. 我想将一系列python模块放入一个包中。 I would like to set it up such that anyone interested can just download it and install it (on unix). 我想进行设置,以便任何有兴趣的人都可以下载并安装(在UNIX上)。 How can I do this? 我怎样才能做到这一点?

You should use distutils/setuptools to create egg and PyPI to distribute your package. 您应该使用distutils / setuptools创建egg和PyPI来分发您的软件包。

See according tutorials on packaging and uploading to PyPI: 请参阅有关打包和上传到PyPI的相应教程:

http://diveintopython3.org/packaging.html http://diveintopython3.org/packaging.html

http://wiki.python.org/moin/CheeseShopTutorial http://wiki.python.org/moin/CheeseShopTutorial

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我将如何打包和部署像Mercurial hooks这样的Python应用程序? - How would I package and deploy Python application like Mercurial hooks? 我将python模块放入哪个目录? - Which directory do I put python modules in? 如何在Python中进行动态类生成? (或者一系列if / elses会更好) - How can I do dynamic class generation in Python? (or would a series of if/elses be better) 如何在Python中格式化文本,就像在Illustrator中一样? - How can i format Text in python like i would in Illustrator? 我有一个Python程序,客户希望在Windows 8上作为双击的桌面图标来访问。我该如何做? 8 - I have a Python program that the customer would like to access as a double clickable desktop icon on Windows 8. How do I do this? 8 如何使用setuptools创建包含多个模块的python包? - How do I use setuptools to create a python package with multiple modules? 如果我将一个包导入到 python 中,我是否还必须单独重视它的模块? - If I import a package into python, do I also have to important it's modules separately? 我如何控制软件包中的模块以导入python? - how can i control modules in package to import in python? 我将如何创建然后导入包含未指定模块集的软件包? - How would I create and then import a package containing an unspecified set of modules? 如何安装中间有空格的 python 模块? - How can i install python modules that have spaces in between?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM