SourceForge: pybzedit/pybzedit: changeset 44:e9f7ff08ef51
Set up cx_freeze for the cpython version
authorDavid Lawler <djlawler@aol.com>
Fri Jul 17 23:30:28 2009 -0400 (4 months ago)
changeset 44e9f7ff08ef51
parent 434025521b327d
child 45e7a2cf23aa66
Set up cx_freeze for the cpython version
.hgignore
cpython/freeze.bat
cpython/setup.py
     1.1 --- a/.hgignore	Fri Jul 17 11:34:51 2009 -0400
     1.2 +++ b/.hgignore	Fri Jul 17 23:30:28 2009 -0400
     1.3 @@ -9,3 +9,4 @@
     1.4  ipython/pyBzEdit/pyBzEdit.suo
     1.5  *.ini
     1.6  */private/*
     1.7 +cpython/build
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cpython/freeze.bat	Fri Jul 17 23:30:28 2009 -0400
     2.3 @@ -0,0 +1,1 @@
     2.4 +python setup.py build
     2.5 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cpython/setup.py	Fri Jul 17 23:30:28 2009 -0400
     3.3 @@ -0,0 +1,25 @@
     3.4 +import sys
     3.5 +import os
     3.6 +import shutil
     3.7 +from cx_Freeze import setup, Executable
     3.8 +
     3.9 +sys.path.append(".")
    3.10 +sys.path.append("..\\common")
    3.11 +path = sys.path
    3.12 +excludes = "OpenGL"
    3.13 +
    3.14 +base = None
    3.15 +#if sys.platform == "win32":
    3.16 +#    base = "Win32GUI"
    3.17 +setup(name="pyBzEdit",
    3.18 +      version="0.6.1",
    3.19 +      description="pyBzEdit",
    3.20 +      options={"build_exe": {"path": path, "excludes": excludes}},
    3.21 +      executables=[Executable("pyBzEdit.pyw", base=base)])
    3.22 +
    3.23 +sourcedir = "C:\\Python26\\Lib\\site-packages\\OpenGL"
    3.24 +destdir = "build\\exe.win32-2.6\\OpenGL"
    3.25 +if os.path.isdir(destdir):
    3.26 +    shutil.rmtree(destdir)
    3.27 +shutil.copytree(sourcedir, destdir, ignore=shutil.ignore_patterns('*.pyo', '*.py', 'PyOpenGL-Demo-3.0.0*'))
    3.28 +shutil.copyfile("pyBzEdit.ico", "build\\exe.win32-2.6\\pyBzEdit.ico")
    3.29 \ No newline at end of file