]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
moving to setup.py
authorgcmalloc <gcmalloc@gmail.com>
Wed, 28 Nov 2012 17:24:16 +0000 (18:24 +0100)
committergcmalloc <gcmalloc@gmail.com>
Wed, 28 Nov 2012 17:24:16 +0000 (18:24 +0100)
setup.py [moved from build_exe.py with 91% similarity]

similarity index 91%
rename from build_exe.py
rename to setup.py
index 9fa8186cbfb203d9ad2c29f7a4de13b7b33a39a1..3eccf50d8ff3545a0d2b0e3809cd9a8613d7d84c 100644 (file)
+++ b/setup.py
@@ -1,6 +1,10 @@
 from distutils.core import setup
-import py2exe
-import sys, os
+import sys
+try:
+    import py2exe
+except ImportError:
+    sys.stderr.write("Cannot import py2exe")
+import os
 
 """This will create an exe that needs Microsoft Visual C++ 2008 Redistributable Package"""
 
@@ -37,7 +41,7 @@ setup(name='youtube-dl',
       description='Small command-line program to download videos from YouTube.com and other video sites',
       url='https://github.com/rg3/youtube-dl',
       packages=['youtube_dl'],
-      
+
       console = console,
       options = {"py2exe": options},
       zipfile = None,