[Distutils] Issue with Setuptools package name
P.J. Eby
pje at telecommunity.com
Tue Aug 17 19:58:01 CEST 2010
At 08:37 AM 8/17/2010 -0500, Brad Allen wrote:
>I am not sure if this got lost in the shuffle, but Praveen said this
>problem only occurs if the package name begins with the string
>"build". The problem doesn't occur if the package is renamed to
>something else.
That's why I gave the instructions that I did.
The likely problem is that distutils is doing an exclusion on the
"build" directory -- but it uses the "build base" directory to
determine the exclusion, i.e.:
self.filelist.exclude_pattern(None, prefix=build.build_base)
This means you can (probably) work around the issue by adding "build
-b btmp", so that the exclusion is applied to files beginning with
'btmp' instead of with 'build'.
Hence, the instructions you see below:
>On Thu, Aug 12, 2010 at 10:05 PM, P.J. Eby <pje at telecommunity.com> wrote:
> > At 11:36 AM 8/12/2010 +0530, pavi ena wrote:
> >>
> >> Scripts\python.exe setup.py install -vvv
> >
> > Change the above line to:
> >
> > Scripts\python.exe setup.py build -b btmp install -vvv
> >
> > If this change makes it work, then the problem is indeed the bug
> pointed out
> > by Takayuki SHIMIZUKAWA:
> >
> > http://bugs.python.org/issue6884
> >
> > Otherwise, I'm not sure what's going on.
More information about the Distutils-SIG
mailing list