\rm -fr build /tmp/lib
- Binary distribution:
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.*.i386.rpm
- Source distribution and then binary distribution (out of build
source distro):
cd $GDCMHOME
+ [make clean (see above) ]
python setup.py sdist
cd /tmp
tar zxvf $GDCMHOME/dist/gdcmPython-*.tar.gz
- ./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 <somedirectoryPath>/RPMS/i386/ and
+ <somedirectoryPath>/SRPMS.
1b/ Packaging at the python level:
cd $(GDCMHOME)
python setup.py sdist