[openstack-dev] Blueprint proposal: Drop setuptools_git for including data/config files
Alan Pevec
apevec at gmail.com
Wed Dec 5 10:40:30 UTC 2012
> This is a simplified version of what our rpm build tools do:
>
> $ git clone git://github.com/openstack/nova.git
Hmm, rpmbuild from git?
It works fine from a released tarball e.g.
$ wget https://launchpad.net/nova/grizzly/grizzly-1/+download/nova-2013.1%7Eg1.tar.gz
$ tar zxf nova-2013.1~g1.tar.gz
$ cd nova-2013.1/
$ sed -i "/setup_requires=\['setuptools_git/d" setup.py
$ find build -name migrate.cfg
build/lib/nova/db/sqlalchemy/migrate_repo/migrate.cfg
build/lib/nova/virt/baremetal/db/sqlalchemy/migrate_repo/migrate.cfg
$ grep migrate.cfg nova.egg-info/SOURCES.txt
nova/db/sqlalchemy/migrate_repo/migrate.cfg
nova/virt/baremetal/db/sqlalchemy/migrate_repo/migrate.cfg
> $ cd nova
> $ rm -rf .git*
> $ sed -i "/setup_requires=\['setuptools_git/d" setup.py
> $ python setup.py build
> $ find build -name migrate.cfg
> $ grep migrate.cfg nova.egg-info/SOURCES.txt
Cheers,
Alan
More information about the OpenStack-dev
mailing list