Unable to install bzr 0.6 from tarball

John Arbash Meinel john at arbash-meinel.com
Tue Nov 1 22:03:11 GMT 2005


Martin Pool wrote:
> On 01/11/05, Kevin Smith <yarcs at qualitycode.com> wrote:
> 
>>Hi all,
>>
>>I suddenly have a need for version control on a new project, so I
>>thought I would go ahead and install bzr. I'm using ubuntu hoary, so I
>>figured the safest route would be to download the 0.6 tarball and
>>install it. Unfortunately, the install failed, and I don't recall seeing
>>anything like this on the list already.
>>
>>First, I would like to see the README file mention that installation
>>instructions can be found in the INSTALL file. I suppose it's
>>"obvious"...except when it's not, for whatever reason.
> 
> 
> Done
> 
> 
>>Anyway, it doesn't work. Here's the failure:
>>
>>kevins at misty:/download/bzr-0.6$ sudo python setup.py install
>>Password:
>>running install
>>error: invalid Python installation: unable to
>>open /usr/lib/python2.4/config/Makefile (No such file or directory)
> 
> 
> Thanks for the report; I hadn't heard of this before.
> 
> The immediate fix is to install python2.4-dev.  I'm not sure why
> distutils would want to read that file, or if it can be avoided.

The Makefile is parsed so that it knows the options for how python was
configured.
I believe it is only really needed to get CC, CFLAGS, etc.
Since this is a python only app, you don't really need it, though maybe
it would also have base directory or something.

I'm guessing, though, that distutils doesn't pay attention to whether
you are installing a python only app, and just expects that if you want
to run "python setup.py build" you will have python2.4-dev installed.
Since building/installing is a developer action.

On the other hand, it would make sense for us to provide an Ubuntu Hoary
repository for the bzr releases. Especially since Source Mage is
creating packages for itself.
Does python setup.py handle this sort of thing? I know it can create
Win32 installers, I'm guessing it can create .deb files.
Something along the lines of "python setup.py bdist"

John
=:->

> --
> Martin
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051101/596b850c/attachment.pgp 


More information about the bazaar mailing list