From 5caca6b8df91b5a7a99d597c8663c100cc2632af Mon Sep 17 00:00:00 2001 From: "Ian D. Scott" Date: Thu, 15 Jan 2015 17:05:30 -0800 Subject: [PATCH 1/2] Support py2exe --- setup.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 77c11729..3f03c523 100755 --- a/setup.py +++ b/setup.py @@ -13,6 +13,12 @@ except ImportError: from distutils.core import setup +try: + import py2exe # Add py2exe command + +except ImportError: + pass + setup( name="mps-youtube", version="0.2.1", @@ -24,6 +30,7 @@ download_url="https://github.com/np1/mps-youtube/tarball/master", packages=['mps_youtube'], entry_points=dict(console_scripts=['mpsyt = mps_youtube:main.main']), + console=['mpsyt'], install_requires=['Pafy >= 0.3.66'], package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]}, classifiers=[ @@ -52,5 +59,6 @@ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)" ], - long_description=open("README.rst").read() + long_description=open("README.rst").read(), + options={"py2exe": {"excludes": "readline, win32api, win32con"}} ) From 846fbc1143fceb69b86586fd19c585d5df659603 Mon Sep 17 00:00:00 2001 From: "Ian D. Scott" Date: Thu, 15 Jan 2015 18:13:17 -0800 Subject: [PATCH 2/2] Make py2exe build binary not require additional dlls --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3f03c523..2949cfa7 100755 --- a/setup.py +++ b/setup.py @@ -60,5 +60,7 @@ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)" ], long_description=open("README.rst").read(), - options={"py2exe": {"excludes": "readline, win32api, win32con"}} + options={"py2exe": {"excludes": "readline, win32api, win32con, xerox", + "bundle_files": 1}}, + zipfile=None )