User Tools

Site Tools


proj:targz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

proj:targz [2011/03/18 23:15] (current)
Line 1: Line 1:
 +[[:home | Home]]
  
 +[[:​proj:​project | Project]]
 +
 +====== Notes on Preparing tar.gz ======
 +
 +===== Run script =====
 +
 +run 0 KEEP pre_LINUX_packaging.py (in SOFA/​storage) - details below.
 +
 +===== Step by Step =====
 +
 +  - empty sofaclean (except for init needed for importing)
 +  - add folder called sofastats-n.n.n
 +  - copy the bits of sofa.main that we want inside (very similar to portion of DEB packaging script)
 +  - copy INSTALL.sh, README.txt, copyright inside
 +  - tar.gz sofastats-n.n.n folder from inside sofaclean with sofastats-n.n.n.tar.gz name
 +
 +
 +===== INSTALL.sh notes =====
 +
 +Must make it easy for both users and Linux packagers to work with.
 +
 +  * Copy all files to correct location (including sofarun bash script)
 +  * Set permissions explicitly to ensure OK
 +  * create shell script to run application with command sofastats
 +
 +===== README.txt =====
 +
 +  * Encourage user that installation is very easy and automated
 +  * Explain process of running INSTALL.sh as root or superuser (sudo)
 +  * Explain process of adding required packages from distro package manager e.g. YaST (openSUSE)
 +
 +===== Longer term =====
 +
 +Grant,
 +
 +...
 +
 +I am puzzled by the "chmod -R u=rwx" command, but I will look at it later.
 +
 +...
 +
 +There are still some remaining issues with regards to the packager not
 +knowing which python version will be available when the package is installed,
 +as well as handling the creation of the .pyc files. I recommend the
 +python distutils for these issues, but that is a subject for another post.
 +
 +In the meantime, those who want to have working pyc files for better performance
 +will need to install the program in a directory where they have write permissions.
 +The shell variables in the install script are helpful here as well, e.g., for
 +someone who has added /​home/​myname/​lib/​python to PYTHONPATH,
 +
 +sofastats_dir_location=/​home/​myname/​lib/​python
 +
 +Regards, Dave
 +
 +[[:​proj:​sourceforge | Sourceforge Notes]]
proj/targz.txt ยท Last modified: 2011/03/18 23:15 (external edit)