Make fails on Fedora 11 because py_compilefiles is missing

Bug #395107 reported by Miroslav on 2009-07-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gedit XML Tools
Medium
Simon Wenner

Bug Description

Make fails with /bin/sh: py_compilefiles: command not found on Fedora 11.
Packages python-2.6-9.fc11.i586 and python-devel-2.6-9.fc11.i586 are installed.
The py_compilefiles is nowhere to be found in the repos: yum provides "*/py_compilefiles" returns No Matches.

I'm probably missing something obvious, but since the plugin works like a charm if one manually executes only part of the Makefile:

 mkdir -p ~/.gnome2/gedit/plugins
 cp -f xmltools.py ~/.gnome2/gedit/plugins/
 cp -f xmlprocessor.py ~/.gnome2/gedit/plugins/
 cp -f xmltools.gedit-plugin ~/.gnome2/gedit/plugins/

perhaps you could handle a case of missing py_compilefiles automatically and just go with uncompiled .py files?

Simon Wenner (nowic) wrote :

Thanks for your report. Someone should probably write a proper build system :-)

But I commited a fix to trunk. I hope it solves your problem.

- py_compilefiles *.py
+ #py_compilefiles *.py (does not work on fedora)
+ python -c "import py_compile; py_compile.compile('xmltools.py')"
+ python -c "import py_compile; py_compile.compile('xmlprocessor.py')"

Changed in gedit-xmltools:
assignee: nobody → Simon Wenner (nowic)
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers