[openstack-dev] [packaging][all] Sample Config Files in setup.cfg

Thomas Bechtold tbechtold at suse.com
Wed Oct 11 07:55:52 UTC 2017


Hi,

On 10.10.2017 13:04, Jesse Pretorius wrote:
> On 9/29/17, 7:18 AM, "Thomas Bechtold" <tbechtold at suse.com> wrote:
> 
>>     This will still install the files into usr/etc :
> 
>>     $ python setup.py install --skip-build --root /tmp/sahara-install > /dev/null
>>     $ ls /tmp/sahara-install/usr/
>>     bin  etc  lib
> 
>>     It's not nice but packagers can workaround that.
> 
> I gave this a try this morning:
> 
> $ python setup.py install --skip-build --root /tmp/keystone --install-data /
> $ find /tmp/keystone -maxdepth 6 -type d
> /tmp/keystone
> /tmp/keystone/usr
> /tmp/keystone/usr/local
> /tmp/keystone/usr/local/bin
> /tmp/keystone/usr/local/lib
> /tmp/keystone/usr/local/lib/python2.7
> /tmp/keystone/usr/local/lib/python2.7/dist-packages
> /tmp/keystone/usr/local/lib/python2.7/dist-packages/keystone-12.0.0.0rc2.dev101.egg-info
> /tmp/keystone/usr/local/lib/python2.7/dist-packages/keystone
> /tmp/keystone/etc
> /tmp/keystone/etc/keystone
> 
> Is this perhaps useful?

Now the python files are in usr/local which is wrong for distros. It 
should be usr/

Tom



More information about the OpenStack-dev mailing list