On Wed, 10 Jul 2013 22:25:50 +0200 Michał Górny <[email protected]> wrote: > > python_test() { > > # TODO: this seems to be used only in dev-python/twisted-* > > packages as # dev-python/twisted-13.0.0 have it's own src_test > > if [[ "${CATEGORY}/${PN}" != "dev-python/twisted"* ]]; then > > die "${FUNCNAME}() can be used only in > > dev-python/twisted* packages" fi > > > > local sitedir="${EPREFIX}$(python_get_sitedir)" > > > > # Copy modules of other Twisted packages from site-packages > > directory to temporary directory. mkdir -p "${T}/${sitedir}" > > cp -R "${ROOT}${sitedir}/twisted" "${T}/${sitedir}" || die > > "Copying of modules of other Twisted packages failed with > > $(python_get_implementation) $(python_get_version)" rm -fr > > "${T}/${sitedir}/${PN/-//}" > > Awful and ugly. Try to find a way to run the tests without this > hackery.
What are you referring to?
For the "${CATEGORY}/${PN}" match. All the non-twisted packages are
overriding src_test but it's probably be gonna cleaner to rename the
python_test to twisted-r1_twisted_test and call it explicitly for the
twisted packages.
As for the Copy modules, I'm afraid that's inevitable.
signature.asc
Description: PGP signature
