From 3e34a7804f6e7fd5ea11ac98c73452e68d416fc3 Mon Sep 17 00:00:00 2001 From: gimick Date: Sun, 12 Dec 2010 19:54:43 +0000 Subject: [PATCH] pokereval: update py2exe walkthrough, add build instructions for windows site-package --- .../windows/py2exeWalkthroughPython26.txt | 9 ++++--- ...ypokereval-win32-packaging-walkthrough.txt | 26 +++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/packaging/windows/py2exeWalkthroughPython26.txt b/packaging/windows/py2exeWalkthroughPython26.txt index 68a74c81..7ad865c0 100644 --- a/packaging/windows/py2exeWalkthroughPython26.txt +++ b/packaging/windows/py2exeWalkthroughPython26.txt @@ -30,14 +30,17 @@ py2exe 0.6.9 ... http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2ex psycopg2 ... http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.2.1.win32-py2.6-pg8.4.3-release.exe (Note: stickpeople is the offical repository, not a community build) +(py)pokereval v138 ... http://sourceforge.net/projects/fpdb/files/fpdb/pypoker-eval-win32/pokereval-138.win32.exe/download +(Note: There are no official windows builds, this installer is built from source. A walkthrough is in the same directory as this walkthrough. 1.2/ MySQL -MySQL-python-1.2.3.win32-py2.6-fpdb0.20.exe ... http://www.mediafire.com/file/iodnnnznmj1/MySQL-python-1.2.3.win32-py2.6-fpdb0.20.exe +Install the following file: -This is an intaller built from source by gimick. There are no official mysql-python2.6 builds for windows. +MySQL-python-1.2.3.win32-py2.6-fpdb0.20.exe ... http://sourceforge.net/projects/fpdb/files/fpdb/MySQL-python-1.2.3-win32-py2.6/MySQL-python-1.2.3.win32-py2.6-fpdb0.20.exe/download -Community builds are also available from some developers. see www.codegood.com for example. +Note: This is an intaller built from source by gimick. A walkthrough to build this installer is in the same directory as this walkthrough. +Note: There is no official mysql-python2.6 build for windows. Community builds are available from some developers. see www.codegood.com for example. 1.3/ pytz fixup to work in an executable package diff --git a/packaging/windows/pypokereval-win32-packaging-walkthrough.txt b/packaging/windows/pypokereval-win32-packaging-walkthrough.txt index f5527309..b0fbe5f9 100644 --- a/packaging/windows/pypokereval-win32-packaging-walkthrough.txt +++ b/packaging/windows/pypokereval-win32-packaging-walkthrough.txt @@ -53,7 +53,7 @@ Python 2.6.5 ... http://www.python.org/ftp/python/2.6.5/python-2.6.5.msi 1.2/ Grab pypokereval stuff from fpdb project here ... -pypokereval ... http://sourceforge.net/projects/fpdb/files/fpdb/pypoker-eval-win32/pypokereval-138-win32-py265-fpdb-1.1.exe/download +pypokereval ... http://sourceforge.net/projects/fpdb/files/fpdb/pypoker-eval-win32/dev/pypokereval-138-win32-py265-fpdb-1.1.exe/download 1.3/ Double click the pypokereval-138-win32-py265-fpdb-1.1.exe and extract the folder to the desktop @@ -62,10 +62,10 @@ pypokereval ... http://sourceforge.net/projects/fpdb/files/fpdb/pypoker-eval-win ---------------------------------------------------------- dos>cd desktop -dos>mkdir pypokereval138-installer-win32-py265-fpdb -dos>cd pypokereval138-installer-win32-py265-fpdb -dos>mkdir payload -dos>cd payload +dos>mkdir temp +dos>cd temp +dos>mkdir pokereval +dos>cd pokereval dos>copy ..\..\pypokereval-138-win32-py265-fpdb-1.1\_pokereval_2_6.pyd dos>copy ..\..\pypokereval-138-win32-py265-fpdb-1.1\pokereval.py @@ -84,9 +84,10 @@ does not work unless the pokereval.py (which defines the PokerEval class) is ren dos> rename pokereval.py __init__.py 3. Prepare the additional packaging files +----------------------------------------- dos>cd desktop -dos>cd pypokereval138-installer-win32-py265-fpdb +dos>cd temp 3.1/ setup.py ------------- @@ -109,8 +110,9 @@ author_email = "Fpdb-main@lists.sourceforge.net", url = "fpdb.sourceforge.net", packages = ['pokereval'], package_data = {'pokereval' : filelist }, -long_description = """An unofficial installer for pypokereval v138, win32, python v2.6.5 -pokereval official project page is at http://www.pokersource.info/""" +long_description = """An unofficial and experimental installer for pypokereval v138 +Built for 32bit windows and python v2.6.5 +pokereval official project page is at http://www.pokersource.info/""" ) #================================================== @@ -120,7 +122,7 @@ pokereval official project page is at http://www.pokersource.info/""" The following structure should now exist. -pypokereval138-installer-win32-py265-fpdb +temp |--setup.py |--pokereval |--_pokereval_2_6.pyd @@ -132,9 +134,11 @@ pypokereval138-installer-win32-py265-fpdb 3.3 Build --------- -Navigate to the desktop/pypokereval138-installer-win32-py265-fpdb directory +Navigate to the desktop/temp directory -dos>c:\Python26\python.exe setup.py bdist_wininst --plat-name=win32 --user-access-control auto +dos>c:\Python26\python.exe setup.py bdist_wininst --plat-name=win32 --user-access-control force + +Note: UAC auto seems to cause lockup on my win7 system 3.4 Complete ------------