[BangPypers] Naming python packages

Anand Chitipothu anandology at gmail.com
Tue Dec 20 07:22:28 CET 2011


2011/12/20 Baiju M <baiju.m.mail at gmail.com>:
> On Tue, Dec 20, 2011 at 10:32 AM, Anand Chitipothu <anandology at gmail.com> wrote:
>> Hi,
>>
>> I've noticed that pip converts underscore in the package name to hyphen.
>>
>> $ pip install satchmo_indiapost
>> Downloading/unpacking satchmo-indiapost
>>  Could not find any downloads that satisfy the requirement satchmo-indiapost
>> No distributions at all found for satchmo-indiapost
>>
>> There is a packge with requested name on pypi, but pip doesn't even
>> looking for it.
>>
>> http://pypi.python.org/pypi/satchmo_indiapost
>>
>> Is underscore prohibited in the package names?
>
> Check the PJE's replies here:
> http://mail.python.org/pipermail/distutils-sig/2010-March/thread.html#15641

Quoting PJE:

"It's a valid project name character; what it's not is a *canonical*
project name character."

What is this *canonical* project name?

Does it mean underscore should be avoided in the project-name for all
practical purposes?

Anand


More information about the BangPypers mailing list