Hello; I built a code on Linux and moved it to Windows successfully a month or so ago. The user asked for a change, and after re-arranging the code and making the alterations, tried to re-send it. It gets there, but the 2 site packages aren't registered.
The command used to build the Windows installer was (with python 2.4.1): python win_batch_setup.py bdist_wininst The file win_batch_setup.py contains: #!/usr/bin/python # Execute as 'python this_file.py bdist_wininst' to create a # Windows install file ('thisfile-1.4.win32.exe') # from distutils.core import setup setup ( name = 'batch', \ version = '1.14', \ description= 'Converts LAS files from MD to TVD in batch',\ long_description= 'snipped...',\ author = 'Dean Allen Provins, P. Geoph.',\ author_email = '[EMAIL PROTECTED]',\ url = 'none',\ license = 'open',\ py_modules = [\ 'BATCH/batch', \ 'ROOT/BATCH_MD_TVD', \ 'ROOT/MD_TVD', \ 'ROOT/LAS', \ 'ROOT/spline', \ 'ROOT/func'], \ platforms = 'Linux, MS Windows',\ data_files = [('.', \ ['BATCH/pywintypes24.dll', \ 'BATCH/batch.py', 'BATCH/batch_readme.txt', 'BATCH/100082406303W600_ACCUCARD_tab.OUT',\ 'BATCH/100082406303W600_ACCUMAP.CSV',\ 'BATCH/petra_well_MD_unwrap.las'])]\ ) This resulted in the following - and note the WARNING at the end. I believe it is a symptom of the problem: [EMAIL PROTECTED]:~/python/LAS$ python win_batch_setup.py bdist_wininst # re-create bu ild and dist running bdist_wininst running build running build_py creating build creating build/lib creating build/lib/BATCH copying BATCH/batch.py -> build/lib/BATCH creating build/lib/ROOT copying ROOT/BATCH_MD_TVD.py -> build/lib/ROOT copying ROOT/MD_TVD.py -> build/lib/ROOT copying ROOT/LAS.py -> build/lib/ROOT copying ROOT/spline.py -> build/lib/ROOT copying ROOT/func.py -> build/lib/ROOT installing to build/bdist.linux-i686/wininst running install_lib creating build/bdist.linux-i686 creating build/bdist.linux-i686/wininst creating build/bdist.linux-i686/wininst/PURELIB creating build/bdist.linux-i686/wininst/PURELIB/BATCH copying build/lib/BATCH/batch.py -> build/bdist.linux-i686/wininst/PURELIB/BATCH creating build/bdist.linux-i686/wininst/PURELIB/ROOT copying build/lib/ROOT/BATCH_MD_TVD.py -> build/bdist.linux-i686/wininst/PURELIB/ROOT copying build/lib/ROOT/MD_TVD.py -> build/bdist.linux-i686/wininst/PURELIB/ROOT copying build/lib/ROOT/LAS.py -> build/bdist.linux-i686/wininst/PURELIB/ROOT copying build/lib/ROOT/spline.py -> build/bdist.linux-i686/wininst/PURELIB/ROOT copying build/lib/ROOT/func.py -> build/bdist.linux-i686/wininst/PURELIB/ROOT running install_data creating build/bdist.linux-i686/wininst/DATA copying BATCH/pywintypes24.dll -> build/bdist.linux-i686/wininst/DATA/. copying BATCH/batch.py -> build/bdist.linux-i686/wininst/DATA/. copying BATCH/batch_readme.txt -> build/bdist.linux-i686/wininst/DATA/. copying BATCH/100082406303W600_ACCUCARD_tab.OUT -> build/bdist.linux-i686/wininst/DATA/. copying BATCH/100082406303W600_ACCUMAP.CSV -> build/bdist.linux-i686/wininst/DATA/. copying BATCH/petra_well_MD_unwrap.las -> build/bdist.linux-i686/wininst/DATA/. creating '/tmp/tmp5iHDWK.zip' and adding '.' to it adding 'PURELIB/BATCH/batch.py' adding 'PURELIB/ROOT/BATCH_MD_TVD.py' adding 'PURELIB/ROOT/MD_TVD.py' adding 'PURELIB/ROOT/LAS.py' adding 'PURELIB/ROOT/spline.py' adding 'PURELIB/ROOT/func.py' adding 'DATA/pywintypes24.dll' adding 'DATA/batch.py' adding 'DATA/batch_readme.txt' adding 'DATA/100082406303W600_ACCUCARD_tab.OUT' adding 'DATA/100082406303W600_ACCUMAP.CSV' adding 'DATA/petra_well_MD_unwrap.las' Warning: Can't read registry to find the necessary compiler setting Make sure that Python modules _winreg, win32api or win32con are installed. removing 'build/bdist.linux-i686/wininst' (and everything under it) The code is installed in .../site-packages/BATCH and .../site-packages/ROOT. The modules therein aren't visible to python unless I force the sys.path variable in the mainline. It seems odd that a Linux setup.py run should ask for a windows registery module... Any ideas on what I'm missing? Dean -- Dean Provins, P. Geoph. [EMAIL PROTECTED] [EMAIL PROTECTED] KeyID at at pgpkeys.mit.edu:11371: 0x9643AE65 Fingerprint: 9B79 75FB 5C2B 22D0 6C8C 5A87 D579 9BE5 9643 AE65 Confidentiality Notice: The information transmitted herein may contain confidential, proprietary and/or privileged material which belongs to Trident Exploration Corp. and its affiliates and is intended only for the addressee(s). Any unauthorized review, distribution or other use or the taking of any action in reliance upon this information is prohibited. If you received this email in error, please contact the sender or call (403) 770-1765 and delete this email and any copies. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32