Problem distributing a Gadfly app

Arpad Kiss sekter at matavnet.hu
Mon Jan 10 16:51:00 EST 2000


calishar at my-deja.com wrote:
> 
> Hello folks,
> 
>   I am just in the finishing off stage of an application for work that
> uses the gadfly database package. I am trying to build an installable
> application using installer (from Gordon Macmillan?) and running into a
> problem.
> 
>   The application builds alright, but when I install it on the other
> machine, and go to run it, it fails.
> 
>   After re-building with the debug flag on, use runw off, and support
> on, I saw that it is trying to load the sql.mar file from the c: drive.
> Well, it ain't there. If I try to add the sql.mar file to the
> dependencies line of the cfg file, builder fails, if I add it to the
> includes line it fails.
> 
>   Has anyone run into this before?
> 
Hi,
My workaround: 
-i have added a carchive section to the cfg file. This carchive contains
the sql.mar file.
-i have added the sqlwhere.py to the excludes line of APPZLIB
-the unpack script puts the sql.mar file in the install dir and creates
a sqlwhere.py in the install dir too. The sqlwhere.py only contains the
path
to the sql.mar file(in this case this is the install dir).

Here is a sample cfg file:

[MYINSTALL]
type= INSTALL
name= Install_ehk.exe
bindepends= ehk.py
zlib = INSTALLZLIB
misc= MYSTANDALONE, ROOT
debug = 0
excludes = PyWinTypes15.dll, win32api


[MYSTANDALONE]
type= STANDALONE
icon= e:\newehk\images\ehk.ico
name= ehk.exe
script= ehk.py
zlib = APPZLIB
userunw = 1
support = 0
debug = 0


[ROOT]
type = CARCHIVE
name = root.pkg
misc = sql.mar
support = 0
installscript = createroot.py


[APPZLIB]
name= ehk.pyz
dependencies= ehk.py
excludes= dospath, posixpath, macpath, c:\Program
Files\Python\kwp\sqlwhere.py


[INSTALLZLIB]
name = installzlib.pyz
dependencies = installutils
includes = installutils
excludes = dospath, posixpath, macpath         


and the createroot.py:

installutils.installCArchive(os.path.join(idir,'root.pkg'), idir,
'.'+os.sep)
f=open(os.path.join(idir,'sqlwhere.py'),'w')
f.write("filename = '%s'" % os.path.join(idir,'sql.mar'))
f.close()            

Best Regards,
Arpad Kiss




More information about the Python-list mailing list