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