How does openstack compile the rmp pakages?

asked 2015-11-29 20:26:07 -0500

ltxdzh gravatar image

updated 2015-11-29 20:28:54 -0500

Hi, everyone

I notice that openstack projects' rpm pakages may be built with setuptools, with commands like this: python setup.py bdist_rpm

I also found that each components of a project of openstack share the same egg-info under /usr/lib/python2.6/site-packages/, though they have different packages.

For example, the pakages of compute and network components of nova(Icehouse version) are: openstack-nova-compute-2014.1-2.el6.noarch.rpm, openstack-nova-network-2014.1-2.el6.noarch.rpm. and they share the egg-info directory: /usr/lib/python2.6/site-packages/nova-2014.1-py2.6.egg-info/

I tried to compile a component for test, such as openstack-myproject-mycomponent, but I could only get pakage as openstack-myproject-mycomponent-2014.1-1.noarch.rpm, and the eg-info directory openstack_myproject_mycomponent-2014.1.0-py2.6.egg-info

How can I specify the release tag into '2.el6' and the egg-info directory into myproject-2014.1-py2.6.egg-info ?

edit retag flag offensive close merge delete