Thanks for that information, Ian - I was anticipating a day or so of reasearch next week to package up my app, but hopefully I won't have to now.
--Jon On 10/2/06, ian <[EMAIL PROTECTED]> wrote: > > Baurzhan Ismagulov wrote: > > Hello mamcxyz, > > > > On Fri, Sep 29, 2006 at 07:43:49AM -0700, mamcxyz wrote: > >> - Deployment. I work on Delphi and the idea of put a EXE and all is > >> working right (tm) is a feeling I lost with python on hosting. > > > > So what about writing a small script that will do this for you? > > Something like > > > > tar cC /localdir/myprj . |ssh host tar xC /remotedir/myprj > > > > FWIW, I create a Debian package of my project and install it on the > > server. > > > > With kind regards, > > Baurzhan. > > > > > > > > Hi, > This is very interesting and would maybe make a great tutorial ...here > is my shot at how you would do this and create a hello-world application > for Django (please correct the errors): > 1. Create a directory hello-world-1.0.0 (more on debian package naming > at Debian New Maintainers' Guide: > http://www.us.debian.org/doc/maint-guide/) and put all files in it > 2.Debian packages use makefiles (Makefile) instead of Python Distutils > (Distributing Python Modules: http://docs.python.org/dist/dist.html) so > we have to write a Makefile to act as an interface between the Debian > package system and our setup.py. > So create a file called "Makefile" containing this: > > all: > python2.4 setup.py build > > clean: > python2.4 setup.py clean --all > > install: > python2.4 setup.py install > > 3. In a terminal run dh_make: > [EMAIL PROTECTED]:~/hello-world-1.0.0$ dh_make -e [EMAIL PROTECTED] > This will output some info to the screen (choose single binary as the > package type) and it will then create a debian/ directory below the > hello-world-1.0.0 directory. The key files in this directory are control > and rules. In 'control' it's a "fill in the blanks" work and in 'rules' > it's essentially a matter of removing unwanted/unnecessary code > Because our app is 100% Python we have 100% architecture > independence...so the bottom of the rules file should look like: > > # Build architecture-independent files here. > binary-indep: build install > dh_testdir > dh_testroot > dh_installchangelogs > dh_fixperms > dh_installdeb > dh_gencontrol > dh_md5sums > dh_builddeb > > binary-arch: build install > > > > 4.After step 3 we have to actually build the package now: > [EMAIL PROTECTED]:~/hello-world-1.0.0$ dpkg-buildpackage -rfakeroot > > The parent directory should now have a file called > hello-world_1.0.0-1_all.deb which is your Debian package to install > where you like with dpkg -i hello-world_1.0.0-1_all.deb > > []'s > > > > -- > Ian Lawrence > Centre for Bioinformatics > INSTITUTO NACIONAL DE PESQUISAS DA AMAZÔNIA-INPA > RUA ANDRÉ ARAÚJO N º .2936 , BAIRRO DO ALEIXO > MANAUS-AMAZONAS-BRAZIL > Research Program in Biodiversity > http://ppbio.inpa.gov.br > PHONE: 055-92-3643-3358 > CEP. 69011 -970 > > | Please do not send me documents in a closed > | format.(*.doc,*.xls,*.ppt) > | Use the open alternatives. (*.pdf,*.html,*.txt) > http://www.gnu.org/philosophy/no-word-attachments.html > > "We are all in the gutter, but some of us are looking at the stars." > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---