Python如何生成和安装第三方包
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
2.2.6 Code distribution
General Purpose:
1.Create a folder, put source code and setup code inside of it.
2.Open Windows PowerShell, change the path to the source code path above
3.Build distribution file
Running command: e:\Python34\python.exe setup.py sdist
4.Install distribution to local python file
Running command: python setup.py install
(it also works as c:\Python27\python.exe setup.py install)
While build code with MinGW, run code below
c:\Python27\python.exe setup.py install build - -compiler=mingw32