added kind of working windows py2exe setup
This commit is contained in:
parent
b6fa8a6dbb
commit
ce9900559d
4 changed files with 17 additions and 12 deletions
|
@ -1,7 +1,8 @@
|
|||
|
||||
mkdir bungloo
|
||||
cp ../Qt/* bungloo
|
||||
cp ../WebKit bungloo
|
||||
cp ../images bungloo
|
||||
cp setup.py bungloo
|
||||
Copy-Item ../Qt/* bungloo -Recurse
|
||||
Copy-Item ../WebKit bungloo -Recurse
|
||||
Copy-Item ../images bungloo -Recurse
|
||||
Copy-Item setup.py bungloo
|
||||
touch bungloo/__init__.py
|
||||
Copy-Item msvcp90.dll bungloo
|
BIN
Windows/msvcp90.dll
Normal file
BIN
Windows/msvcp90.dll
Normal file
Binary file not shown.
|
@ -5,22 +5,26 @@ from distutils.core import setup
|
|||
import py2exe
|
||||
|
||||
files = []
|
||||
for dirname, dirnames, filenames in os.walk('bungloo/WebKit'):
|
||||
for dirname, dirnames, filenames in os.walk('WebKit'):
|
||||
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:
|
||||
files += [os.path.join(dirname, filename)[8:]]
|
||||
files += [(dirname, os.path.join(dirname, filename))]
|
||||
|
||||
setup(
|
||||
name = "bungloo",
|
||||
name = "Bungloo",
|
||||
version = "1.3.0",
|
||||
author = "Jeena Paradies",
|
||||
author_email = "spam@jeenaparadies.net",
|
||||
url = "http://jabs.nu/bungloo",
|
||||
license = "BSD license",
|
||||
packages = ['bungloo'],
|
||||
package_data = {"bungloo": files},
|
||||
scripts = ["bungloo/Bungloo.py"]
|
||||
#data_files = files,
|
||||
windows = ["Bungloo.py"],
|
||||
options = {
|
||||
"py2exe": {"includes": ["sip", "PyQt4.QtCore", "PyQt4.QtGui", "PyQt4.QtNetwork"]}
|
||||
}
|
||||
)
|
||||
|
|
BIN
images/Icon.ico
Normal file
BIN
images/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
Reference in a new issue