Fwd: RFS: Scenic 0.6.0 - Telepresence software for live performances and installations

Alexandre Quessy alexandre at quessy.net
Wed Jun 9 06:23:51 UTC 2010


Hello Jonas and everyone!
I greatly appreciate your help, by the way. :)

2010/6/8 Jonas Smedegaard <dr at jones.dk>:
>
> Until fixed upstream (which should be doable with autotools, I believe) we
> can probably (depending on the exact kind of problem happening, off course)
> hack the hashbang after build but before doing regression tests.
>
> Have a look at e.g. the radicale package for a routine to do such hack.  And
> tell me if you need help ensuring that it gets applied between build and
> tests.
>

That looks OK. Once I fix my current bug, I'll apply that.

>
> Even without providing public Python modules, I imagine it would be nice to
> be able to use your tools with a non-default Python. If irrelevant, then
> change Python version hint to be "current" instead of "all" and still use
> python-autotools.mk (as it does some magic for Python Policy even with a
> single version).
>

I changed my debian/rules files in order to use python-autotools.mk:

{{{
DEB_PYTHON_PRIVATE_MODULES_DIRS_scenic = /usr/lib/scenic/py
DEB_BUILDDIR = build
DEB_PYTHON_SYSTEM = pysupport
DEB_PYTHON_PACKAGES = scenic rtpmidi

include /usr/share/cdbs/1/class/python-autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_CONFIGURE_EXTRA_FLAGS = --enable-mt
DEB_MAKE_CHECK_TARGET = check
}}}

I am not sure this is correct...

At the end of the building process, it runs the unit tests, and it
fails, since it doesn't have the path to the private Python packages
in its PYTHONPATH:

{{{
/usr/bin/make  check-TESTS
make[4]: Entering directory
`/home/aalex/src/debian/build-area/scenic-0.5.11/build/2.5/py'
                                                                        [ERROR]
===============================================================================
[ERROR]: /home/aalex/src/debian/build-area/scenic-0.5.11/./py/scenic/test/test_cameras.py
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py",
line 651, in loadByNames
    things.append(self.findByName(name))
  File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py",
line 460, in findByName
    return filenameToModule(name)
  File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py",
line 98, in filenameToModule
    return _importFromFile(fn)
  File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py",
line 117, in _importFromFile
    module = imp.load_source(moduleName, fn, fd)
  File "/home/aalex/src/debian/build-area/scenic-0.5.11/./py/scenic/test/test_cameras.py",
line 7, in <module>
    from scenic.devices import cameras
exceptions.ImportError: No module named scenic.devices
-------------------------------------------------------------------------------
FAILED (errors=1)
FAIL: scenic/test/test_cameras.py
}}}


It seems like this is built in the
../build-area/scenic-0.5.11/build/2.5/py and
../build-area/scenic-0.5.11/build/2.6/py directories. Maybe I can skip
the unit tests? Maybe I can override the check target, adding these
directories to the PYTHONPATH environment variable?
-- 
Alexandre Quessy
http://alexandre.quessy.net/



More information about the pkg-multimedia-maintainers mailing list