Hi, I was wondering if there is an easy way to install the DLLs that my extension requires from my setup script? I would like to install them in the same directory as my package i.e. MyPackage\ DLL1.dll DLL2.dll __init__.py blah.pyd I use to just use: data_files = [('MyPackage',data_files)] but that no longer works now that extensions go into site-packages. Cheers, Brian
Brian Quinlan wrote:
Hi,
I was wondering if there is an easy way to install the DLLs that my extension requires from my setup script? I would like to install them in the same directory as my package i.e.
MyPackage\ DLL1.dll DLL2.dll __init__.py blah.pyd
I use to just use:
data_files = [('MyPackage',data_files)]
but that no longer works now that extensions go into site-packages.
Why doesn't it work anymore ? You DLLs should show up in the same directry as the .pyd file. If not something is broken with the site-packages support. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/
M.A.Lemburg wrote:
Why doesn't it work anymore ? You DLLs should show up in the same directry as the .pyd file. If not something is broken with the site-packages support.
The file locations, after installation, are: C:\Python22\ MyPackage\ DLL1.dll DLL2.dll ... lib\ site-packages\ MyPackage\ __init__.py _MyPackage.pyd It looks like the path used by data_files is still relative to the Python installation directory, not to site-packages. Cheers, Brian
Brian Quinlan wrote:
M.A.Lemburg wrote:
Why doesn't it work anymore ? You DLLs should show up in the same directry as the .pyd file. If not something is broken with the site-packages support.
The file locations, after installation, are:
C:\Python22\ MyPackage\ DLL1.dll DLL2.dll ... lib\ site-packages\ MyPackage\ __init__.py _MyPackage.pyd
It looks like the path used by data_files is still relative to the Python installation directory, not to site-packages.
install_data has never worked for me which is why I created a replacement for the eGenix stuff, but the above looks clearly like a bug. Please post a bug report for this on SF. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/
participants (2)
-
Brian Quinlan
-
M.-A. Lemburg