[問題] 在eclipse PyDev 建立distribution

看板Python作者 (圈圈)時間13年前 (2012/07/13 11:16), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
小弟是看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

07/16 09:28, , 1F
目前我都是用commandline, 自已寫 setup.py
07/16 09:28, 1F

07/16 10:43, , 2F
推timTan的自己寫setup.py
07/16 10:43, 2F

08/09 13:45, , 3F
thanks
08/09 13:45, 3F
文章代碼(AID): #1F_vCWWp (Python)