Add support for cx_Freeze 5
- rename some options - clean path of gtk configurations - import user module for customization - add lib directory in python path issue6902 review39861002
This commit is contained in:
1 parent
562b34ad76
commit
c432564c4c
6 files changed
+13
-9
No files matched your search
+3
-1
@@ -23,7 +23,9 @@ if hasattr(sys, 'frozen'):
|
||||
etc, 'gtk-2.0', 'gdk-pixbuf.loaders')
|
||||
os.environ['GTK_IM_MODULE_FILE'] = os.path.join(
|
||||
etc, 'gtk-2.0', 'gtk.immodules')
|
||||
if sys.platform == 'win32':
|
||||
if os.platform == 'win32':
|
||||
# cx_freeze >= 5 put python modules under lib directory
|
||||
sys.path.append(os.path.join(prefix, 'lib'))
|
||||
os.environ.setdefault('SSL_CERT_FILE',
|
||||
os.path.join(etc, 'ssl', 'cert.pem'))
|
||||
os.environ.setdefault('SSL_CERT_DIR',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Automatically generated file, do not edit
|
||||
# Created by gtk-query-immodules-2.0 from gtk+-2.24.30
|
||||
#
|
||||
# ModulesPath = /Users/ced/.gtk-2.0/2.10.0/x86_64-apple-darwin15.5.0/immodules:/Users/ced/.gtk-2.0/2.10.0/immodules:/Users/ced/.gtk-2.0/x86_64-apple-darwin15.5.0/immodules:/Users/ced/.gtk-2.0/immodules:@executable_path/lib/gtk-2.0/2.10.0/x86_64-apple-darwin15.5.0/immodules:/Users/ced/gtk/inst/lib/gtk-2.0/2.10.0/immodules:/Users/ced/gtk/inst/lib/gtk-2.0/x86_64-apple-darwin15.5.0/immodules:/Users/ced/gtk/inst/lib/gtk-2.0/immodules
|
||||
# ModulesPath = @executable_path/lib/gtk-2.0/immodules
|
||||
#
|
||||
"@executable_path/lib/gtk-2.0/2.10.0/immodules/im-am-et.so"
|
||||
"am_et" "Amharic (EZ+)" "gtk20" "@executable_path/share/locale" "am"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
version=`python setup.py --version`
|
||||
python setup.py compile_catalog
|
||||
python setup-freeze.py bdist_mac
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
version=`python setup.py --version`
|
||||
python setup.py compile_catalog
|
||||
python setup-freeze.py install_exe -d dist
|
||||
|
||||
+6
-4
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import user
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
from cx_Freeze import setup, Executable
|
||||
@@ -52,12 +53,10 @@ setup(name='tryton',
|
||||
version=version,
|
||||
options={
|
||||
'build_exe': {
|
||||
'compressed': False,
|
||||
'no_compress': True,
|
||||
'include_files': include_files,
|
||||
'silent': True,
|
||||
'packages': ['gtk'],
|
||||
'icon': os.path.join(
|
||||
'tryton', 'data', 'pixmaps', 'tryton', 'tryton.ico'),
|
||||
'include_msvcr': True,
|
||||
},
|
||||
'bdist_mac': {
|
||||
@@ -68,4 +67,7 @@ setup(name='tryton',
|
||||
},
|
||||
executables=[Executable(
|
||||
'bin/tryton',
|
||||
base='Win32GUI' if sys.platform == 'win32' else None)])
|
||||
base='Win32GUI' if sys.platform == 'win32' else None,
|
||||
icon=os.path.join(
|
||||
'tryton', 'data', 'pixmaps', 'tryton', 'tryton.ico'),
|
||||
)])
|
||||
@@ -2,7 +2,7 @@
|
||||
# Automatically generated file, do not edit
|
||||
# Created by gdk-pixbuf-query-loaders.exe from gdk-pixbuf-2.35.4
|
||||
#
|
||||
# LoaderDir = C:\msys32\mingw32/lib/gdk-pixbuf-2.0/2.10.0/loaders
|
||||
# LoaderDir = lib/gdk-pixbuf-2.0/2.10.0/loaders
|
||||
#
|
||||
"lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll"
|
||||
"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL"
|
||||
|
||||
Reference in new issue
Block a user