X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PACKAGER;h=11231874409f3f763b271cf980ce01cf473ddf49;hb=HEAD;hp=55e3345adb857266930f316fbba4766ce451cf2e;hpb=2d80f3c3dc0de0087e7a11ffec6be009e97405a5;p=gdcm.git diff --git a/PACKAGER b/PACKAGER index 55e3345a..11231874 100644 --- a/PACKAGER +++ b/PACKAGER @@ -13,7 +13,7 @@ Here is the checklist when freezing a version of gdcm: ./autogen.sh --enable-vtk --enable-python --enable-doxygen make - 1b/ check the python test suite is clean (python testSuite.py) + 1b/ check the python test suite is clean: cd gdcmPython export PYTHONPATH=`pwd`/.. ln -s .libs/pygdcm.so _gdcm.so @@ -23,31 +23,41 @@ Here is the checklist when freezing a version of gdcm: 1c/ check the setup.py distutil script is operational and then validate its produced packages through the test suite, in all following cases - Direct installation: - cd $(GDCMHOME) - python setup.py install --prefix=/tmp/ + cd $GDCMHOME + python setup.py install --prefix=/tmp cd /tmp/lib/python2.2/site-packages/ - ln -s $(GDCMDATAHOME) . + ln -s $GDCMHOME/gdcmData . export PYTHONPATH=`pwd` cd gdcmPython/ python testSuite.py + cd $GDCMHOME + \rm -fr build /tmp/lib - Binary distribution: - cd $(GDCMHOME) + cd $GDCMHOME + make clean + [ or you might 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: @@ -80,7 +90,7 @@ Here is the checklist when freezing a version of gdcm: - Binary distribution: cd $(GDCMHOME) python setup.py bdist --formats=wininst - install $(GDCMHOME)\dist\gdcmPython-0.3.win32-py2.2.exe + install $(GDCMHOME)\dist\gdcmPython-xxx.win32-py2.2.exe cd $(PYTHONHOME)\Lib\site-packages\ Check out gdcmData cd gdcmPython @@ -91,7 +101,7 @@ Here is the checklist when freezing a version of gdcm: source distro): cd $(GDCMHOME) python setup.py sdist --formats=zip - unzip $(GDCMHOME)\dist\gdcmPython-0.3.zip in TMPHOME directory + unzip $(GDCMHOME)\dist\gdcmPython-xxx.zip in TMPHOME directory cd $(TMPHOME) cd gdcmPython-*/ python setup.py bdist --formats=wininst @@ -113,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