Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

setup.py: copy sleekxmpp folder as py2exe fail to include some files,…

… and the generated exe crash without them.
  • Loading branch information...
commit 07050725fa64517c79c4b466fac1abf67a1a5d36 1 parent 2e81636
@pepeleproso pepeleproso authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 setup.py
View
19 setup.py
@@ -141,6 +141,25 @@
if f != "__init__.py" and f.endswith(".py"):
includes.append("gui.common."+f[:-2])
+ # get current path
+ this_module_path = os.path.dirname(unicode(__file__,
+ sys.getfilesystemencoding()))
+
+ current_path = os.path.abspath(this_module_path)
+ source_path = os.path.join(current_path, 'emesene')
+ dist_path = os.path.join(current_path, "dist")
+
+ #replace sleekxmpp dir as py2exe doesn't copy all the needed files
+ features_dir = os.path.join(dist_path, "sleekxmpp")
+ source_features_dir = os.path.join(source_path, "e3\\xmpp\\SleekXMPP\\sleekxmpp")
+ try:
+ shutil.rmtree(features_dir)
+ except:
+ pass
+ shutil.copytree(source_features_dir,
+ features_dir,
+ ignore=shutil.ignore_patterns(('*.pyc')))
+
opts = {
"py2exe": {
"packages": ["encodings", "gtk", "OpenSSL", "Crypto", "xml",
Please sign in to comment.
Something went wrong with that request. Please try again.