Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2011, 03:57 PM   #1
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
how do you create your application installer for Windows.

Hi Kovid,

We are thinking about packaging a pure python drag and drop application for Windows and to make it work we would need to use PyCrypto and Python 2.7 much like you do with Calibre.

Do you use a special tool for creating your Windows installers that bundle in python, pycrypto, etc? Do you include the entire Python executable and libs as one used to do when making apps that needed the java virtual machine run time environment? Or do you compile your python code to standalone exe files using py2exe?

I have seen links to PyInstaller and NSIS installers but I have no idea which is better and hoped to pick your brain as to the best way to create a pure python application that can be run on Windows without worrying about which if any version of Python they have installed, ditto for Pycrypto.

Thanks for any hints on what the best way to do this is.

KevinH
KevinH is offline   Reply With Quote
Old 01-07-2011, 04:36 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I've written my own C code that hosts the python interpreter and my own python code that copies the python libs (and all other dependencies) into an installation package. The installation package is created using WiX.

All relevant code is in setup/installer/windows/*

Basically my code is a custom replacement for py2exe. I used to use py2exe, but eventually decided to write my own code for various reasons.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-07-2011, 06:09 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
Thanks for that information. I will take a look at what you have done and see if I can get a version of it to work for us as well. I am not a Windows Developer so even finding the right tools to compile the main.c will be as issue for me. I will grab cygwin since it is free.

Thanks,

KevinH
KevinH is offline   Reply With Quote
Old 01-07-2011, 07:57 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the free edition of microsoft visual c++ that is what python itself is compiled with. Do not use cygwin, if you want to use a GNU compiler use, msys.
kovidgoyal is offline   Reply With Quote
Old 01-07-2011, 09:04 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
Hi,

Thanks, I will use the free version Microsoft Visual C++ one then.

Kevin
KevinH is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Windows installer AprilHare Calibre 6 12-29-2009 07:47 PM
Windows Installer? radamo Calibre 4 12-27-2009 08:09 AM
New windows build and installer kovidgoyal Calibre 17 10-11-2009 09:44 AM
What is the best application to create PDF fit on a Reader? komugi PDF 14 07-29-2009 03:20 PM
Installer doesn't run on Windows 7 drogo Calibre 5 02-09-2009 08:13 PM


All times are GMT -4. The time now is 10:15 AM.


MobileRead.com is a privately owned, operated and funded community.