I installed a minimal version of CentOS 6.3 on a virtual machine. I then used yum install python to install python-2.6.6-29.e16_3.3.x86_64 to /usr/bin/. I have a custom python script that I wrote and I want to create an RPM of it including all python dependencies so that a centOS user can use rpm command to install my python script and all needed python libraries. Is this a common practice? It seems like the below command is the recommend approach, but I don't have a setup.py file. Any ideas?
python setup.py bdist_rpm
setup.pyfile.