0

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
1
  • 1
    Write a setup.py file. Commented Jan 28, 2013 at 5:41

1 Answer 1

1

Are you sure you need RMP file to be used for installation? After querying for RMP in Google Search, it gave me RMP is a "RealPlayer Metadata Package File". Which I am sure you are not looking for. However based on your other statements I can make out you are trying to create a rpm file which you want to distribute with all the dependencies, And for that you are using the command python setup.py bdist_rpm, This is usually the correct approach but the per-requisite is you need to create the setup.py. Refer to this link http://docs.python.org/release/2.0/dist/setup-script.html

Which talks about how to create your own setup.py file.

Sign up to request clarification or add additional context in comments.

1 Comment

is it a common practice to include the python runtime with a custom python script in a RPM file?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.