build a Python Egg installer package?

Bug #78520 reported by Martin Pool
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

Building an Egg package might make installation and upgrade easier (for people not using a distribution package). For example it would be easier to make sure that all the old files are upgraded when installing, and that we have the needed dependencies.

http://peak.telecommunity.com/DevCenter/PythonEggs
http://peak.telecommunity.com/DevCenter/setuptools

Tags: packaging
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
Changed in bzr:
status: Unconfirmed → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

I think it would fix this problem of having old modules lying around:

I did a setup.py install with the latest code base and now bzr refuses
to run at all. Even if I install an older version I still have this
problem. Here is the output I get:

Traceback (most recent call last):
  File "/usr/bin/bzr", line 84, in ?
    import bzrlib.commands
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 57, in ?
    from bzrlib.option import Option
  File "/usr/lib/python2.4/site-packages/bzrlib/option.py", line 358, in ?
    log.log_formatter_registry, value_switches=True,
  File "/usr/lib/python2.4/site-packages/bzrlib/lazy_import.py", line
99, in __getattribute__
    return getattr(obj, attr)
AttributeError: 'module' object has no attribute 'log_formatter_registry'

It seems the latest bzr has messed up the installation somehow. It was
working fine before I installed the latest version.

If I run bzr from its source directory then it works but it is no longer
possible to install it...

Nick
You need to remove your old bzrlib/ install before installing a new one.

This is a bug in python's built-in install functionality. In that it
just adds files, it doesn't remove old ones. I think if you just delete
"C:\Python24\Lib\site-packages\bzrlib" first, and then install bzr it
will work fine.

You may want to copy ...\bzrlib\plugins\* first, in case you had any
plugins installed.

John
=:->

Jelmer Vernooij (jelmer)
tags: added: packaging
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.