Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. Summary: Review Request: pythoncad - PythonCAD scriptable CAD package https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225119 ------- Additional Comments From mtasaka@xxxxxxxxxxxxxxxxxxx 2007-02-06 12:18 EST ------- Well, I have not checked -3, however,(In reply to comment #7) > - %config(noreplace) %{_sysconfdir}/pythoncad/prefs.py* > I've only excluded from package prefs.py? which are commonly unneeded! > prefs.py is a config file and is also refered in %site_lib/preferences.py Umm.. this is not. Generic/preferences.py says: ------------------------------------------------- 1223 try: 1224 _f, _p, _d = imp.find_module('prefs', ['/etc/pythoncad']) 1225 if _f is not None: 1226 try: ------------------------------------------------- This means that Generic/preferences.py tries to import /etc/pythoncad/prefs.py as a module. When this is done, what occurs is... ------------------- [root@localhost pythoncad]# rm -f *pyc *pyo [root@localhost pythoncad]# ls -al total 52 drwxr-xr-x 2 root root 4096 Feb 7 02:13 . drwxr-xr-x 146 root root 16384 Feb 7 00:23 .. -rw-r--r-- 1 root root 18527 Sep 19 04:36 prefs.py [root@localhost pythoncad]# gtkpycad [root@localhost pythoncad]# ls -al total 60 drwxr-xr-x 2 root root 4096 Feb 7 02:14 . drwxr-xr-x 146 root root 16384 Feb 7 00:23 .. -rw-r--r-- 1 root root 18527 Sep 19 04:36 prefs.py -rw-r--r-- 1 root root 1466 Feb 7 02:14 prefs.pyc ------------------------------ ... you can see that prefs.pyc is created. Python tries to optimize (i.e. compile) python script when it is loaded as a module if it is possible automatically, and this should not be done under /etc. -- Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact. _______________________________________________ Fedora-package-review mailing list Fedora-package-review@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-package-review