Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-30 Thread Robert Collins
On 30 September 2014 14:05, Robert Collins robe...@robertcollins.net wrote: I'm poking around now. It looks like pip install -e outside a venv writes to /usr/local/lib/python2.7/dist-packages, which is pure crack - dist-packages is for the distro, site-packages for pip. Sigh. Also writing to

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-26 Thread Doug Hellmann
On Sep 25, 2014, at 6:14 PM, Robert Collins robe...@robertcollins.net wrote: On 24 September 2014 11:03, Robert Collins robe...@robertcollins.net wrote: So... FWIW I think I've got a cleaner implementation of namespaces *for our context* - it takes inspiration from the PEP-420 discussion

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-26 Thread Doug Hellmann
On Sep 23, 2014, at 7:03 PM, Robert Collins robe...@robertcollins.net wrote: On 29 August 2014 04:42, Sean Dague s...@dague.net wrote: On 08/28/2014 12:22 PM, Doug Hellmann wrote: ... The problem is that the setuptools implementation of namespace packages breaks in a way that is repeatable

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-25 Thread Robert Collins
On 24 September 2014 11:03, Robert Collins robe...@robertcollins.net wrote: So... FWIW I think I've got a cleaner implementation of namespaces *for our context* - it takes inspiration from the PEP-420 discussion and final design. It all started when Mike reported issues with testr to me.

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-23 Thread Robert Collins
On 29 August 2014 04:42, Sean Dague s...@dague.net wrote: On 08/28/2014 12:22 PM, Doug Hellmann wrote: ... The problem is that the setuptools implementation of namespace packages breaks in a way that is repeatable but difficult to debug when a common OpenStack installation pattern is used.

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-23 Thread Mike Bayer
On Sep 23, 2014, at 7:03 PM, Robert Collins robe...@robertcollins.net wrote: On 29 August 2014 04:42, Sean Dague s...@dague.net wrote: On 08/28/2014 12:22 PM, Doug Hellmann wrote: ... The problem is that the setuptools implementation of namespace packages breaks in a way that is repeatable

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-09-23 Thread Robert Collins
Nuts, thank you. On 24 September 2014 14:28, Mike Bayer mba...@redhat.com wrote: On Sep 23, 2014, at 7:03 PM, Robert Collins robe...@robertcollins.net wrote: On 29 August 2014 04:42, Sean Dague s...@dague.net wrote: On 08/28/2014 12:22 PM, Doug Hellmann wrote: ... The problem is that the

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Flavio Percoco
On 08/27/2014 05:52 PM, Doug Hellmann wrote: On Aug 27, 2014, at 11:14 AM, Flavio Percoco fla...@redhat.com wrote: On 08/27/2014 04:31 PM, Sean Dague wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Radomir Dopieralski
On 27/08/14 16:31, Sean Dague wrote: [snip] In python 2.7 (using pip) namespaces are a bolt on because of the way importing modules works. And depending on how you install things in a namespace will overwrite the base __init__.py for the top level part of the namespace in such a way that you

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Radomir Dopieralski
On 28/08/14 12:41, Radomir Dopieralski wrote: On 27/08/14 16:31, Sean Dague wrote: [snip] In python 2.7 (using pip) namespaces are a bolt on because of the way importing modules works. And depending on how you install things in a namespace will overwrite the base __init__.py for the top

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Flavio Percoco
On 08/28/2014 12:50 PM, Radomir Dopieralski wrote: On 28/08/14 12:41, Radomir Dopieralski wrote: On 27/08/14 16:31, Sean Dague wrote: [snip] In python 2.7 (using pip) namespaces are a bolt on because of the way importing modules works. And depending on how you install things in a namespace

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Doug Hellmann
On Aug 28, 2014, at 6:41 AM, Radomir Dopieralski openst...@sheep.art.pl wrote: On 27/08/14 16:31, Sean Dague wrote: [snip] In python 2.7 (using pip) namespaces are a bolt on because of the way importing modules works. And depending on how you install things in a namespace will overwrite

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-28 Thread Sean Dague
On 08/28/2014 12:22 PM, Doug Hellmann wrote: On Aug 28, 2014, at 6:41 AM, Radomir Dopieralski openst...@sheep.art.pl wrote: On 27/08/14 16:31, Sean Dague wrote: [snip] In python 2.7 (using pip) namespaces are a bolt on because of the way importing modules works. And depending on how

[openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Sean Dague
So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad direction to be headed. Here is the problem when it comes to working with code from git, in python, that uses namespaces, it's kind of a hack that violates the principle

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Ben Nemec
On 08/27/2014 09:31 AM, Sean Dague wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad direction to be headed. Here is the problem when it comes to working with code from git, in python, that uses namespaces,

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Flavio Percoco
On 08/27/2014 04:31 PM, Sean Dague wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad direction to be headed. Here is the problem when it comes to working with code from git, in python, that uses namespaces,

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Doug Hellmann
On Aug 27, 2014, at 10:31 AM, Sean Dague s...@dague.net wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad direction to be headed. Here is the problem when it comes to working with code from git, in python,

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Doug Hellmann
On Aug 27, 2014, at 11:14 AM, Flavio Percoco fla...@redhat.com wrote: On 08/27/2014 04:31 PM, Sean Dague wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad direction to be headed. Here is the problem when

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Donald Stufft
On Aug 27, 2014, at 11:45 AM, Doug Hellmann d...@doughellmann.com wrote: On Aug 27, 2014, at 10:31 AM, Sean Dague s...@dague.net mailto:s...@dague.net wrote: So this change came in with adding glance.store - https://review.openstack.org/#/c/115265/5/lib/glance, which I think is a bad

Re: [openstack-dev] [all] [glance] python namespaces considered harmful to development, lets not introduce more of them

2014-08-27 Thread Doug Hellmann
On Aug 27, 2014, at 11:55 AM, Donald Stufft don...@stufft.io wrote: On Aug 27, 2014, at 11:45 AM, Doug Hellmann d...@doughellmann.com wrote: On Aug 27, 2014, at 10:31 AM, Sean Dague s...@dague.net wrote: So this change came in with adding glance.store -