Made building on Windows a bit easier.

This commit is contained in:
Skyler Lehmkuhl 2013-01-20 01:27:00 -05:00
parent c87c18d868
commit 6414cef02d
2 changed files with 14 additions and 4 deletions

View File

@ -1,10 +1,10 @@
Building on Windows: 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 c:\Python27\python.exe setup.py py2exe
2. Copy the GUI folder from the root directory into dist\. 4. The executable is in dist\lightningbeam.exe. You probably do need most of the DLL's, I haven't
3. The executable is in dist\lightningbeam.exe. You probably do need most of the DLL's, I haven't
gone through them yet. gone through them yet.
Building on Ubuntu/Debian: Building on Ubuntu/Debian:

View File

@ -14,6 +14,8 @@ import ez_setup
ez_setup.use_setuptools() ez_setup.use_setuptools()
import sys import sys
import shutil
import pygments
from setuptools import setup from setuptools import setup
@ -70,3 +72,11 @@ setup(
name="Lightningbeam", name="Lightningbeam",
**extra_options **extra_options
) )
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")