andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
5 stars 2 forks source link

error building 0.3.2 on ubuntu intrepid #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There's a build error with cf 0.3.2 on Ubuntu intrepid. Once I've
satisified the build deps, running dpkg-buildpackage eventually gives the
following:

[snip]
> python setup.py build
> Traceback (most recent call last):
>   File "setup.py", line 28, in <module>
>     from sphinx.setup_command import BuildDoc
> ImportError: No module named setup_command
> make: *** [build-stamp] Error 1
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

The sphinx.setup_command module must be new in sphinx 0.5, since the
version in intrepid is 0.4.2, which doesn't have it.

Is there some way to make that optional so it can get built on intrepid? If
not, the control file probably wants to be updated to require python-sphinx
>= 0.5-ish.

Original issue reported on code.google.com by michael....@gmail.com on 1 Feb 2009 at 11:43

GoogleCodeExporter commented 9 years ago
Here's a workaround to build it on intrepid:

In setup.py comment the two imports

 from sphinx.setup_command import BuildDoc
 from utils.command.clean_docs import clean_docs

comment the corresponding commands in the CMD_CLASS dictionary ('clean_docs',
'build_devguide' and 'build_manual'),

right below that dictionary comment the line
  build.sub_commands.append(('build_manual', None))

Then, to build the package run the following commands:

  $ cd docs/manual
  $ make html  # to build the documentation with Sphinx 0.4.x
  $ cd ../../
  $ make builddeb DEBFLAGS="-us -uc"

The DEBFLAGS are needed to build an unsigned package. Currently the sign key is 
hard
coded in the Makefile...

ATM the packages in the package archive
(https://launchpad.net/~crunchyfrog/+archive/ppa) are build on Jaunty which has
Sphinx 0.5. Since crunchyfrog is plain Python and Jaunty and Intrepid have the 
same
Python versions, the binary packages are copied from Jaunty to the Intrepid 
repository.

Original comment by albrecht.andi on 2 Feb 2009 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 2 Feb 2009 at 5:28

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 3 Feb 2009 at 10:12

GoogleCodeExporter commented 9 years ago
r518

Original comment by albrecht.andi on 3 Feb 2009 at 8:28