diff --git a/README_INSTALL.txt b/README_INSTALL.txt index 9715627..15637b1 100644 --- a/README_INSTALL.txt +++ b/README_INSTALL.txt @@ -1,10 +1,10 @@ Building on Windows: - 1. In a CMD window, type: + 1. Uncomment the line at the beginning of lightningbeam.py that says "Uncomment to build on Windows" + 2. In a CMD window, type: c:\Python27\python.exe setup.py py2exe - 2. Copy the GUI folder from the root directory into dist\. - 3. The executable is in dist\lightningbeam.exe. You probably do need most of the DLL's, I haven't + 4. The executable is in dist\lightningbeam.exe. You probably do need most of the DLL's, I haven't gone through them yet. Building on Ubuntu/Debian: diff --git a/setup.py b/setup.py index a53fc58..de7ccb8 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,8 @@ import ez_setup ez_setup.use_setuptools() import sys +import shutil +import pygments from setuptools import setup @@ -69,4 +71,12 @@ else: setup( name="Lightningbeam", **extra_options -) \ No newline at end of file +) + +if sys.platform == 'win32': + shutil.rmtree("dist\GUI") + shutil.rmtree("dist\pygments") + print "Copying PyGUI files..." + shutil.copytree("GUI", "dist\GUI") + print "Copying Pygments files..." + shutil.copytree("\\".join(pygments.__file__.split("\\")[:-1]), "dist\pygments")