From 78781feaa1a67bdc55e91823ba7537c60243573a Mon Sep 17 00:00:00 2001 From: Psychedelic Squid Date: Fri, 18 Mar 2011 15:37:22 +0000 Subject: [PATCH] py2exe build-script and resources for exe version. --- build_exe.bat | 2 ++ res/identicurse.ico | Bin 0 -> 13325 bytes setup_py2exe.py | 73 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 build_exe.bat create mode 100644 res/identicurse.ico create mode 100644 setup_py2exe.py diff --git a/build_exe.bat b/build_exe.bat new file mode 100644 index 0000000..1ce3982 --- /dev/null +++ b/build_exe.bat @@ -0,0 +1,2 @@ +REM This script is used to ensure -OO is added. Also, it is required on 64-bit Vista/7, as running it in XP compatibility mode is needed for a successful build there. +python -OO setup_py2exe.py py2exe diff --git a/res/identicurse.ico b/res/identicurse.ico new file mode 100644 index 0000000000000000000000000000000000000000..1d898d50d21410d8ea85b70b88e2641171fc33a4 GIT binary patch literal 13325 zcmeHOZ)g-p6o0$7-esdluDK6ZDebB4nGeOJ(m(l7>_uW~)R-U^DOwvvtZ0kTf+rQi zR~aJ^0S(NL0#8Fh0H6YKNePn^&j7rIx=3VLo&qp53m_C?@&+Hk zPiXsD&C)l6`P1`pXs~i&`7*QDyz>0`wQ6f(J%GQfvb=2h_G^8ehkjYTBDDMBKMT}p z@jp%m7E7pdJKDtxuKXI(>#D`sr;&lbSfgL-3UEN=tTC}-XF*fP2 zY6+y)sxUPSM;js8s==Htf2#LLd;7dp-v@*K=HGAhrqlP%4fM>es88SQ@0oqzUVs0| zFY4cgPxNHB7K5|z!1*YsHFwmySCx>lb*gb#H{hG&&{PH5{_B%c@2e5GH3!}cgHjY% zO7}rt?AYYwRgZ?Qe9mYY`n$clIdJ=aS$tpm<7L%1P9FafUe;<~QxbY?A#4j9dtujj z7a!bK8lwIBsoWpz`}42hOtoY&E^nyNcw23F%4mSLLgRCD zZ+;8ww8-;t*j)4(O5+PKP07=fFDhs9a09Q`V-+wz2Z#1H2U0x`;se8(?uFNvn8{SZ zvr$ZSe-sMBNJLH8_|(ibp(jt7Omu3gHDUuU^n|yaKw^Vm**3vD-Z`5NkPyU7{ zLpB~Bo+q|ZdwkHem_K!ft%d?Kh7ub$Ebsdf4?3t^u(bT({MwyGi1Ac}TD;6-Rem0a z0l)wBm^W+uV;&3!Amedg1uH)iO9mzq1A0eOw#_~L^9@rnX(A`t27~q@S4^KtFlZxk zBI98MiukeWUAVHE*|BJi?3Sdl4k0B6WIXO`_ayVfZ52n+OMV;!;FK~Rju1|i{BVSD zVt(iMjtzO^EIH9yY^|6x%T}Cx=?8nm2xUBsNjo{Hk^Im$ll%}BjzIF`NDC82?Tg z2(*q;!`$#QO3u-(H~!fy@~?;i>yabE_Ob0>1x1ZB7WuU5xgjWuoTHvIw)zoaZb(-C zX{_BjbrG3Ml1zPlS&o>%8OEFfb>~{17!e@ Ge*FuKXwG;5 literal 0 HcmV?d00001 diff --git a/setup_py2exe.py b/setup_py2exe.py new file mode 100644 index 0000000..5229be1 --- /dev/null +++ b/setup_py2exe.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2010-2011 Reality and Psychedelic Squid +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +""" +py2exe build script. +""" + +__docformat__ = 'restructuredtext' + +from setuptools import setup, find_packages +import py2exe + +setup( + name="identicurse", + version='0.7', # 0.7-dev, but py2exe doesn't like the -dev bit. + description="A simple Identi.ca client with a curses-based UI.", + long_description=("A simple Identi.ca client with a curses-based UI."), + author="Psychedelic Squid and Reality", + author_email='psquid@psquid.net and tinmachin3@gmail.com', + url="http://identicurse.net/", + + download_url=("http://identicurse.net/release/"), + license="GPLv3+", + + data_files=[('identicurse',['README', 'conf/config.json'])], + packages=find_packages('src'), + package_dir={'': 'src'}, + include_package_data=True, + + entry_points={ + 'console_scripts': + ['identicurse = identicurse:main'], + }, + + console=[{ + "script": 'src/identicurse/__init__.py', + "icon_resources": [(1, 'res/identicurse.ico')], + "dest_base": 'identicurse', + }], + zipfile=None, + options={ + "py2exe": + { + "compressed": 1, + "optimize": 2, + "ascii": 1, + "bundle_files": 1, + "packages": 'encodings, identicurse', + "includes": 'identicurse.config, identicurse.textbox, identicurse.helpers, identicurse.statusbar, identicurse.statusnet, identicurse.tabbage, identicurse.tabbar', + } + }, + + classifiers=[ + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Development Status :: 5 - Production/Stable', + 'Programming Language :: Python', + ], +)