Dear Python experts, I am writing a python extension module that needs to link with a third-party DLL. How can I copy this DLL to the site-packages directory along with my extension modules? It seems that data_files parameter can do this, but I do not know how to get the absolute destination directory. After all, this directory is configurable.
I guess I need to determine /path/to/site-package for setup( ... ext_modules = [...] data_files = [ ('/path/to/site-package', ['mydll.dll]) ] ) using something like distutil.config.get_dest_dir(). Many thanks in advance. Bo -- http://mail.python.org/mailman/listinfo/python-list