added kind of working windows py2exe setup

This commit is contained in:
Jeena Paradies 2013-04-02 22:10:02 +02:00
parent b6fa8a6dbb
commit ce9900559d
4 changed files with 17 additions and 12 deletions

View file

@ -1,7 +1,8 @@
mkdir bungloo mkdir bungloo
cp ../Qt/* bungloo Copy-Item ../Qt/* bungloo -Recurse
cp ../WebKit bungloo Copy-Item ../WebKit bungloo -Recurse
cp ../images bungloo Copy-Item ../images bungloo -Recurse
cp setup.py bungloo Copy-Item setup.py bungloo
touch bungloo/__init__.py touch bungloo/__init__.py
Copy-Item msvcp90.dll bungloo

BIN
Windows/msvcp90.dll Normal file

Binary file not shown.

View file

@ -5,22 +5,26 @@ from distutils.core import setup
import py2exe import py2exe
files = [] files = []
for dirname, dirnames, filenames in os.walk('bungloo/WebKit'): for dirname, dirnames, filenames in os.walk('WebKit'):
for filename in filenames: for filename in filenames:
files += [os.path.join(dirname, filename)[8:]] print dirname, filename
files += [(dirname, os.path.join(dirname, filename))]
for dirname, dirnames, filenames in os.walk('bungloo/images'):
for dirname, dirnames, filenames in os.walk('images'):
for filename in filenames: for filename in filenames:
files += [os.path.join(dirname, filename)[8:]] files += [(dirname, os.path.join(dirname, filename))]
setup( setup(
name = "bungloo", name = "Bungloo",
version = "1.3.0", version = "1.3.0",
author = "Jeena Paradies", author = "Jeena Paradies",
author_email = "spam@jeenaparadies.net", author_email = "spam@jeenaparadies.net",
url = "http://jabs.nu/bungloo", url = "http://jabs.nu/bungloo",
license = "BSD license", license = "BSD license",
packages = ['bungloo'], #data_files = files,
package_data = {"bungloo": files}, windows = ["Bungloo.py"],
scripts = ["bungloo/Bungloo.py"] options = {
"py2exe": {"includes": ["sip", "PyQt4.QtCore", "PyQt4.QtGui", "PyQt4.QtNetwork"]}
}
) )

BIN
images/Icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB