> --- python-dmidecode-3.12.2/unit-tests/unit.orig 2015-06-08 > 16:19:45.000000000 +0100 > +++ python-dmidecode-3.12.2/unit-tests/unit 2016-01-14 02:01:48.597318900 > +0000 > @@ -11,6 +11,7 @@ > (sysname, nodename, release, version, machine) = os.uname() > pyver = sys.version[:3] > sys.path.insert(0,'../build/lib.%s-%s-%s' % (sysname.lower(), machine, > pyver)) > +sys.path.insert(1,'../build/lib.%s-%s-%s-%s' % > (sysname.lower().translate(None, '/'), release, machine, pyver))
the right way to retrieve the build dir is: python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib" (thanks jwilk!) which I'm using in several packages, we should do the same here. -- Sandro "morph" Tosi My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi G+: https://plus.google.com/u/0/+SandroTosi