I am trying to create a rpm using setup.py bdist_rpm.
Python version is 2.6.6
My project structure looks like
ncm
- __init__.py
- some_thing.py
...
...
setup.py
setup.cfg
setup.py looks like:
from setuptools import setup, find_packages
setup(name='name of module',
version='1.0',
install_requires=[
'IPy',
'pyro'
],
author = 'author',
long_description = "description of module ",
author_email='support@mycompany.com',
packages=find_packages(),
description = "long description of module",
license = 'GPLv2+'
)
setup.cfg contains:
[bdist_rpm]
requires = python >= 2.6, iscsi-initiator-utils, sg3_utils, device-mapper-multipath
release = 1
group = "Applications/Tools"
If IPy and pyro are not installed in the system where the generated RPM is being installed then they should be downloaded and installed automatically right?... This doesn't happen and also, I don't see setup.py getting put on the machine where RPM is being installed. This file, I guess, should be there cause in the %INSTALL section of .spec I can see
python setup.py intall ...
I got the spec file by doing cpio on the src.rpm
I am new to Python, as well as packaging.... Please help!!