2014-10-09 3 views
0

우분투 컴퓨터에서 작동 할 수있는 파이썬 응용 프로그램의 실행 파일을 만들고 싶습니다.파이썬 응용 프로그램의 실행 파일 만들기

파이썬 setuptools에는 Windows (bdist_wininst) 및 rmp (bdist_rpm) 옵션이 있지만 우분투 또는 debian의 경우 python setuptools에서 옵션을 찾을 수 없습니다.

"bdist_dumb"옵션이 하나 더 있지만 사용하지 않습니다.

질문 :

  1. 어떻게 파이썬 setuptools에를 사용하여 우분투 실행 파일을 만드는 방법?
  2. pyinstaller가 setuptools와 다른 점은 무엇이며 어떻게 사용해야합니까?

답변

0

stdeb 당신이 찾고있는 것이거나 setutool과 비슷한 distutils에서도 사용할 수 있습니다. 다음은 their repo에서 가져온 간단한 예입니다.

#!/usr/bin/env python 
# -*- coding: utf-8 -*- 
from distutils.core import setup 
import sys 
setup(name='simple_pkg', 
     packages=['simple_pkg'], 
     version='0.1', 
     author='Mister Unicodé', 
     author_email='[email protected]', 
     description='Python package with Unicodé fields', 
     long_description='This is a Python package with Unicodé data.', 
) 
+0

setuptools에는 stdeb가 있습니까? – Patrick

+0

@ 패트릭 나는 그들의 정보를 읽고 있었다. 그렇다. 그들은 setuptools도 지원한다. –