Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-15 Thread Baiju M
Hi Jim, On Sat, Mar 13, 2010 at 1:38 AM, Jim Fulton j...@zope.com wrote: On Tue, Mar 9, 2010 at 4:03 PM, Brad Allen bradallen...@gmail.com wrote: Today I was informed of an issue in which buildout (with the latest setuptools) is not resolving version numbers properly, causing the wrong

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-15 Thread Baiju M
On Mon, Mar 15, 2010 at 2:11 PM, Baiju M mba...@zeomega.com wrote: Hi Jim, On Sat, Mar 13, 2010 at 1:38 AM, Jim Fulton j...@zope.com wrote: On Tue, Mar 9, 2010 at 4:03 PM, Brad Allen bradallen...@gmail.com wrote: Today I was informed of an issue in which buildout (with the latest setuptools)

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-12 Thread P.J. Eby
At 11:42 AM 3/12/2010 +0530, Baiju M wrote: On Thu, Mar 11, 2010 at 9:13 PM, P.J. Eby p...@telecommunity.com wrote: At 12:38 PM 3/11/2010 +0530, Baiju M wrote: On Thu, Mar 11, 2010 at 11:05 AM, Baiju M mba...@zeomega.com wrote: If _ is a valid project_name identifier, why it is replaces

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-12 Thread Jim Fulton
On Tue, Mar 9, 2010 at 4:03 PM, Brad Allen bradallen...@gmail.com wrote: Today I was informed of an issue in which buildout (with the latest setuptools) is not resolving version numbers properly, causing the wrong package to be selected in some cases. The cause identified was having '_' in the

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-11 Thread P.J. Eby
At 12:38 PM 3/11/2010 +0530, Baiju M wrote: On Thu, Mar 11, 2010 at 11:05 AM, Baiju M mba...@zeomega.com wrote: If _ is a valid project_name identifier, why it is replaces with - ? In order to have a canonicalized name form which can be escaped in filenames for unambiguous identification of

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-11 Thread Baiju M
On Wed, Mar 10, 2010 at 3:54 AM, P.J. Eby p...@telecommunity.com wrote: At 03:03 PM 3/9/2010 -0600, Brad Allen wrote: Today I was informed of an issue in which buildout (with the latest setuptools) is not resolving version numbers properly, causing the wrong package to be selected in some

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-11 Thread Baiju M
On Thu, Mar 11, 2010 at 9:13 PM, P.J. Eby p...@telecommunity.com wrote: At 12:38 PM 3/11/2010 +0530, Baiju M wrote: On Thu, Mar 11, 2010 at 11:05 AM, Baiju M mba...@zeomega.com wrote: If _ is a valid project_name identifier, why it is replaces with - ? In order to have a canonicalized name

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-10 Thread Brad Allen
On Tue, Mar 9, 2010 at 4:24 PM, P.J. Eby p...@telecommunity.com wrote: As you can see, these APIs work just fine, so the example given is a red herring, unless Buildout is using the APIs incorrectly (which I really doubt it is). Based on Baiju's input above describing buildout's use of

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-10 Thread P.J. Eby
At 09:50 AM 3/10/2010 +0530, Baiju M wrote: I spend some time with Buildout and setuptools code to identify the issue. I will try to explain my findings. 1. Buildout is relying on pkg_resources.Requirement.parse function to get the project_name like this:

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-10 Thread Baiju M
On Thu, Mar 11, 2010 at 10:09 AM, P.J. Eby p...@telecommunity.com wrote: At 09:50 AM 3/10/2010 +0530, Baiju M wrote: I spend some time with Buildout and setuptools code to identify the issue. I will try to explain my findings. 1. Buildout is relying on pkg_resources.Requirement.parse

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-10 Thread Baiju M
On Thu, Mar 11, 2010 at 11:05 AM, Baiju M mba...@zeomega.com wrote: On Thu, Mar 11, 2010 at 10:09 AM, P.J. Eby p...@telecommunity.com wrote: At 09:50 AM 3/10/2010 +0530, Baiju M wrote: I spend some time with Buildout and setuptools code to identify the issue. I will try to explain my

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-09 Thread P.J. Eby
At 03:03 PM 3/9/2010 -0600, Brad Allen wrote: Today I was informed of an issue in which buildout (with the latest setuptools) is not resolving version numbers properly, causing the wrong package to be selected in some cases. The cause identified was having '_' in the package name. I suspect

Re: [Distutils] use of '_' in package name causing version parsing issue?

2010-03-09 Thread Brad Allen
Thanks, that helps a lot. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig