Hi,
I have a ticket "eliminate config.dat file" targeted for Release 1.6
(http://www.pyinstaller.org/ticket/347) and am thinking about the
implementation.
Your input is appreciated.
Removing this file basically means dropping utils/Configure.py, which
does three jobs:
1) collect configuration data and generate config.dat
2) generate file CONFIGDIR/support/useUnicode.py
3) generate file CONFIGDIR/support/useTk.py
1) Merging task 1into makespec and build should be no problem.
2+3) For task 2 and 3 we could implement both a hook and a run-time
hook, but we may need some extensions:
2) For useUnicode (see http://www.pyinstaller.org/ticket/474)
In makespec.py: if the option --ascii is not given, add a script
HOMEPATH/support/loadUnicode.py:
try: import encodings
except ImportError:
try: import codings
except ImportError: pass
This basically moves the detection on which unicode module to use to the
build time. At run-time whatever module is available is imported (using
the same semantic as configure does at the moment.)
On the other hand: there is not need to import these modules at runtime.
We only need to package the data.
PS: We do not need to import the modules at run time, since this is done
by Python. We need to take care the modules are packaged. So there us a
alternate solution: Add another parameter `hidden_imports` to Analysis()
and preset it with `encoding` and `codecs` if `--ascii` is not given.
This will include the required files.
3) For useTk: (http://www.pyinstaller.org/ticket/475)
This can go into a runtime-hook, too.
configure puts the version number into a string. But we can get the
string in the run-time-hook by using glob().
Alternatively, we could implement a way to store data in the carchive
and read it from there.
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.