[Bug 225119] Review Request: pythoncad - PythonCAD scriptable CAD package
bugzilla at redhat.com
bugzilla at redhat.com
Tue Feb 6 17:18:35 UTC 2007
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 at ioa.s.u-tokyo.ac.jp 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 at localhost pythoncad]# rm -f *pyc *pyo
[root at 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 at localhost pythoncad]# gtkpycad
[root at 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.
More information about the Fedora-package-review
mailing list