pydeploy32 0.2Deploy Python on Windows, fast.
Copyright (c) 2009 Michal Pasternak
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction
... [More]
, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Rationalewhat if you deploy a Python project on a Windows box, but it won't work with py2exe or cx_freeze? how can you download & install Python on Windows without a single click? how can you install dependencies for you project? Can you do that automatically? how can I add packages to Python automatically? setuptools work very good. Except for where they don't, some packages are available as MSI files, some packages are avilable as EXE installers... In a perfect world, where all Python packages are indexed in PyPI, are available as EGGs, downloadable by easy_install, py2exe has support for them, and all that works well in Microsoft Windows -- yes, in such world pydeploy32 is useless.
Unfortunatley, this is not our case. So, let's patch this problem with a hack. Even if it looks ugly, it can still save you some trouble.
License.bat and .py files were written by me (Michal Pasternak) and are public domain (do whatever you like, I don't care) bundled wget.exe binary was compiled by Bart Puype and comes from http://users.ugent.be/~bpuype/wget/ MD5: c639f0fc0cbee97148c79d9d9e31fff3 bundled Elevate.exe binary comes from Elevate utility,which is freely available for download here: http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx and is Copyright by: Wintellect Mastering .NET Debugging Copyright (C) 2007 John Robbins -- All rights reserved. MD5: bd81807a5c13da32dd2a7157f66fa55d pydeploy32 currently supportsVista Home Proffessional Python 2.6.1 pydeploy32 requiresno previous Python installation required! Microsoft Windows msiexec.exe http://technet.microsoft.com/en-us/library/cc759262.aspx pydeploy32 howtodownload it to C:\pydeploy32 on a clean Windows install, run: C:\pydeploy32> bootstrap.bat (PYTHON_VERSION)where VERSION is Python version, that you want to install. For example:
C:\pydeploy32> bootstrap 2.6.1This will install Python 2.6.1 with Setuptools
if everything goes fine, you can then run: C:\pydeploy32> add (PYTHON_VERSION) (PACKAGE_NAME|--list|--everything)For example
C:\pydeploy32> add 2.6.1 --list... will print out all available packages. You can the install - for example - Python Imaging Library just by typing:
C:\pydeploy32> add 2.6.1 PILto install every available package (the list could be BIG), that does not require interactive install, use:
C:\pydeploy32> add 2.6.1 --everythingthe install is meant to be unattended and automatic. Unfortunatley, there are some cases, where you need to enter administrator password.
Ideas for future versionsinstallation out of SVN (esp. useful with rare releases) installation out of .tgz (when there's no PyPI entry) bootstrapping a C compiler (free MSVC? mingw? cygwin?) store installed filelist somewhere allow de-installation of packages somehow package dependencies more packages, of course... Thank you!That's all, folks! [Less]