GTG

Comment 3 for bug 401254

Revision history for this message
Mathieu Bridon (bochecha) wrote :

Just tested it.

For the record, and to be absolutely sure I didn't do anything wrong, here is how I tested (based on the instructions at http://live.gnome.org/gtg/ReleaseProcess) :

1. get the latest source:
  $ bzr branch lp:gtg

2. install in a temp folder:
  $ python setup.py install --prefix=~/gtg
Traceback (most recent call last):
  File "setup.py", line 110, in <module>
    description = infor.SHORT_DESCRIPTION,
NameError: name 'infor' is not defined

So I modified line 110 of setup.py to replace « infor.SHORT_DESCRIPTION » by « info.SHORT_DESCRIPTION » and tried again the same command, which succeeded this time.

3. generate the tarball:
  $ python setup.py sdist

4. I then used the dist/gtg-0.1.2.tar.gz archive to create the RPM.

It now fails with the following:
+ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    import info
ImportError: No module named info

Looking at the source, it looks like before creating the dist, there is a info.py file in the root of gtg, but it's not in the extracted dist.

So I edited setup.py as follows:
114c114
< scripts=['gtg',],
---
> scripts=['gtg','info.py'],

And generated again the dist, and then used this new archive for building the RPM.

This time it built fine, I'll now try to install and use it to see if I didn't miss some dependency or break something :]