Made building on Windows a bit easier.
This commit is contained in:
parent
c87c18d868
commit
6414cef02d
|
|
@ -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:
|
||||
|
|
|
|||
12
setup.py
12
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
|
||||
)
|
||||
)
|
||||
|
||||
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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue