At 08:03 AM 5/20/2007 -0400, Alexander Michael wrote:
Unfortunately, ctypes is not available as an egg, so you won't be able to take advantage of setuptool's easy_install to ensure that your user has installed all the dependencies.
easy_install converts distutils .exe files to eggs just fine, and it compiles the source on other platforms. Windows: $ python2.4 -m easy_install -U ctypes Searching for ctypes Reading http://cheeseshop.python.org/pypi/ctypes/ Reading http://starship.python.net/crew/theller/ctypes/ Reading http://sourceforge.net/project/showfiles.php?group_id=71702 Reading http://cheeseshop.python.org/pypi/ctypes/1.0.2 Best match: ctypes 1.0.2 Downloading http://downloads.sourceforge.net/ctypes/ctypes-1.0.2.win32-py2.4.exe?modtime=1179259132&big_mirror=0 Processing ctypes-1.0.2.win32-py2.4.exe ... creating c:\...\lib\site-packages\ctypes-1.0.2-py2.4-win32.egg Extracting ctypes-1.0.2-py2.4-win32.egg to c:\...\lib\site-packages Removing ctypes 0.9.6 from easy-install.pth file Adding ctypes 1.0.2 to easy-install.pth file Installed c:\...\lib\site-packages\ctypes-1.0.2-py2.4-win32.egg Processing dependencies for ctypes Finished processing dependencies for ctypes Linux: [root@sparrow ~]# easy_install-2.3 ctypes Processing ctypes Running setup.py -q bdist_egg --dist-dir /root/ctypes/egg-dist-tmp-OrObNN warning: no files found matching 'NEWS.txt' warning: no files found matching 'ctypes/.CTYPES_DEVEL' Configuring static FFI library: cd build/temp.linux-i686-2.3/libffi && env CFLAGS='' '/root/ctypes/source/libffi/configure' checking build system type... i686-pc-linux-gnu ... zip_safe flag not set; analyzing archive contents... ... Adding ctypes 1.0.1 to easy-install.pth file Installed /usr/lib/python2.3/site-packages/ctypes-1.0.1-py2.3-linux-i686.egg Processing dependencies for ctypes==1.0.1