buildPythonPackage: fix standalone applications using it

This commit is contained in:
Domen Kožar
2015-11-21 21:44:12 +01:00
parent 99a64da600
commit 704c8bab41
22 changed files with 88 additions and 216 deletions
@@ -42,16 +42,13 @@ buildPythonPackage rec {
patchPhase = ''
sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py
rm setup.cfg
'';
configurePhase = ''
sed -i 's/from distutils.core/from setuptools/g' setup.py
sed -i 's/from distutils.command.install/from setuptools.command.install/g' setup.py
python setup.py configure --prefix=$out
postConfigure = ''
${python.interpreter} setup.py configure --prefix=$out
'';
buildPhase = "true";
postInstall = ''
${glib}/bin/glib-compile-schemas "$out"/share/glib-2.0/schemas
'';