> Just create an AIX specific exclude list. Just keep minimum changes to
> make it work on aix. Since it is a stable branch.

You are right.

> In svn trunk these exclude lists are already splitted for platforms.

Good.

I have now made an AIX-specific exclude list. Of course I cannot be
sure it contains everything it should but I have put these libs in the
exclude list:

* All the libs that I used to get along when running PyInstaller on
AIX
  but which I have verified are already on my clean AIX 6.1 machine.

* All the libs already in the list for Linux which I (after
replacing .so with .a)
  have verified are already on my clean AIX 6.1 machine.

* the glibc libraries are not on the AIX exclude list as GNU C
libraries
  are not installed on a clean AIX installation.

I have tested with a minor program and it works in both --one-dir and
--one-file mode. The program is built on AIX 6.1 and is subsequently
tested on AIX 6.1 (build machine and cleanly installed machine), on
AIX 5.3 (devel machine) and on AIX 5.2 (devel machine).

I have also run the test suite on the AIX 6.1 build machine. Results:

{'failed': ['test-zipimport2'],
 'passed': ['test1',
            'test2',
            'test5',
            'test6',
            'test7',
            'test8',
            'test9',
            'test10',
            'test11',
            'test12',
            'test13',
            'test14',
            'test-email',
            'test-encoders',
            'test_f_option',
            'test_filename',
            'test-zipimport1',
            'test-celementtree',
            'test-nestedlaunch0',
            'test-nestedlaunch1',
            'test-relative-import',
            'test-relative-import2',
            'test-relative-import3',
            'test_error_during_import',
            'test_getfilesystemencoding'],
 'skipped': ['test15',
             'test-wx',
             'test-numpy',
             'test-pycrypto',
             'test-ctypes-cdll-c',
             'test-ctypes-cdll-c2']}

Like earlier in this thread some tests are skipped, but one test
fails: 'test-zipimport2'
Running the test file from the command line works fine (i.e. executing
"python test-zipimport2.py").

It looks like the test cannot find the site package "setuptools".
However, as previously discussed, this should be installed (or the
test would be skipped). On my machine I have found these files:
/opt/freeware/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
/opt/freeware/lib/python2.6/site-packages/setuptools.pth

The last lines of the stack trace says:

  File "/data/maconomy/mgd/pyinstaller-patches/2nd/pyinstaller/iu.py",
line 521, in doimport
    exec co in mod.__dict__
  File "/tmp/_MEIPzajUa/eggs/setuptools-0.6c11-py2.6.egg/site.py",
line 73, in <module>
  File "/tmp/_MEIPzajUa/eggs/setuptools-0.6c11-py2.6.egg/site.py",
line 22, in __boot
  File "/tmp/_MEIPzajUa/eggs/setuptools-0.6c11-py2.6.egg/site.py",
line 73, in <module>
  File "/tmp/_MEIPzajUa/eggs/setuptools-0.6c11-py2.6.egg/site.py",
line 38, in __boot
ImportError: Couldn't find the real 'site' module

Should I look further into why this test fails, and do you have any
ideas where to look?

/Martin

-- 
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.

Reply via email to