2016年11月20日 星期日

Install python package using setup.py


1.The setup.py for my package

import sys
from cx_Freeze import setup, Executable
setup(
name = "chen wei lun",
version = "3.5",
description = "ptt_title_with_page_ex tool.",
executables = [Executable("ptt_title_with_page_ex.py", base = "Win32GUI")])
view raw setup.py hosted with ❤ by GitHub


2.Typing command in Python's folder by using Terminal
ex:
cd C://.... 
python setup.py build

Refernect:
https://www.hrwhisper.me/pack-python-3-5-to-exe/
https://www.youtube.com/watch?v=11Q2QADsAEE
Share:

Related Posts:

0 意見:

張貼留言