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:
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:

View File

@ -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
)
)
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")