X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PACKAGER;h=1644da26194f0b7b0a135b7f56404bb0249e1efb;hb=74917aa3a592bde592130de5ece8d9315015b373;hp=a560c1f1d5068a21e0080d1500cdf2f47ec32842;hpb=cac90cec752d5ebfd8a842c08bd0ecd526787a4b;p=gdcm.git diff --git a/PACKAGER b/PACKAGER index a560c1f1..1644da26 100644 --- a/PACKAGER +++ b/PACKAGER @@ -24,32 +24,40 @@ Here is the checklist when freezing a version of gdcm: its produced packages through the test suite, in all following cases - Direct installation: cd $GDCMHOME - python setup.py install --prefix=/tmp/ + python setup.py install --prefix=/tmp cd /tmp/lib/python2.2/site-packages/ ln -s $GDCMHOME/gdcmData . export PYTHONPATH=`pwd` cd gdcmPython/ python testSuite.py cd $GDCMHOME - \rm -fr build + \rm -fr build /tmp/lib - Binary distribution: - cd $(GDCMHOME) + cd $GDCMHOME + make clean + [ or you migth get some complains about the function + PyVTKClass_vtkGdcmReaderNew being multiply defined: this is + because of the loose definition of vtkSources in setup.py + in which the usage of the glob function will produce a link + stage with multiple occurences of vtkGdcmReaderPython.o)]. python setup.py bdist --formats=rpm su - rpm -Uvh dist/gdcmPython-0.[n].i386.rpm + rpm -Uvh dist/gdcmPython-0.*.i386.rpm cd /usr/lib/python2.2/site-packages/ - Check out gdcmData + ln -s $GDCMHOME/gdcmData . cd gdcmPython python testSuite.py rpm --erase gdcmPython - Source distribution and then binary distribution (out of build source distro): - cd $(GDCMHOME) + cd $GDCMHOME + [make clean (see above) ] python setup.py sdist cd /tmp - tar zxvf $(GDCMHOME)/dist/gdcmPython-*.tar.gz + tar zxvf $GDCMHOME/dist/gdcmPython-*.tar.gz cd gdcmPython-*/ python setup.py bdist --formats=rpm + cd dist As root, repeat above installation with rpm and test. 2/ Windoze: @@ -115,6 +123,8 @@ Here is the checklist when freezing a version of gdcm: - ./autogen.sh --enable-vtk --enable-python --enable-doxygen - make release (generates gdcm-x.y.z.tar.gz) - rpm -ta gdcm-x.y.z.tar.gz + - collect the result in /RPMS/i386/ and + /SRPMS. 1b/ Packaging at the python level: cd $(GDCMHOME) python setup.py sdist