作者joepspsps2 (圈圈)
看板Python
标题[问题] 在eclipse PyDev 建立distribution
时间Fri Jul 13 11:16:43 2012
小弟是看Head First Pthon的书在自学
但是在PyDev上似乎不能直接建立套件?
在Stackoverflow上找到的类似问题是这样
Q:
How to create a python distribution package in Eclipse pyDev?
Using the Pydev plugin I can create packages that work well within Eclipse.
However, I want to create packages that I can import in other environments.
How would I proceed to do that? (any chance I can just right click the
package name in eclipse, and "export to package? :))
A:
What does export to package mean for you? If you just take the package, the
way it is and copy it to site-packages it will work out of the box, in
principle.
What you probably want is something like python setup.py bdist. AFAIK, you've
got to do this by hand. (And it's easy, really!)
後来查到
http://docs.python.org/py3k/distutils/builtdist.html
但是依然不解要怎麽发行套件QQ
想请问,在建构套件之後,要怎麽才能发行与安装呢?
我用的是Python3.2
--
在家当宅宅,在外假正经;
常常都在人格分裂的状态阿
http://joepspsps2.blogspot.com/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.249.211.121
1F:推 timTan:目前我都是用commandline, 自已写 setup.py 07/16 09:28
2F:→ elleryq:推timTan的自己写setup.py 07/16 10:43
3F:→ joepspsps2:thanks 08/09 13:45