aquasync commented on issue #40073:
URL: https://github.com/apache/arrow/issues/40073#issuecomment-1942982807

   I was able to get a manifest solution to work, following 
https://devblogs.microsoft.com/oldnewthing/20171011-00/?p=97195.
   
   First I created "force_local_arrow.manifest" with the following:
   
   ```
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
       <file name="arrow.dll" />
   </assembly>
   ```
   
   Then I patched each of "arrow_flight.dll", "arrow_python.dll", 
"lib.cp312-win_amd64.pyd", and "_hdfsio.cp312-win_amd64.pyd" (probably 
incomplete, just enough to load the package) as follows:
   
   ```
   > mt.exe -manifest force_local_arrow.manifest 
-outputresource:lib.cp312-win_amd64.pyd;#2
   ```
   
   Perhaps this approach is better than just renaming the R dll; by amending 
the build process for the windows python wheel to include the necessary flags 
to embed the manifest and avoid the problem altogether.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to