[ 
https://issues.apache.org/jira/browse/ARROW-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606356#comment-16606356
 ] 

Victor Uriarte commented on ARROW-3183:
---------------------------------------

The issue seems to be caused by [this 
line](https://github.com/apache/arrow/blob/e0c07f4dfe4305aadfd7288403f6f3c6272a8369/python/pyarrow/__init__.py#L225)
 that ends up pointing `python_base_install` to `'C:\\Anaconda\\lib'` instead 
of the actual `python_root`.

I can submit a pull request for this. But wanted to verify that my logic wasn't 
flawed. I thought other projects(Turbodbc) were already using this function, so 
I wanted to verify I wasn't doing something wrong.

 

 

@wesm to answer your question on the 
[`TODO`](https://github.com/apache/arrow/blob/e0c07f4dfe4305aadfd7288403f6f3c6272a8369/python/pyarrow/__init__.py#L222-L223).

I don't use `conda` to build my local Cpp extensions, so that section of code 
is useful for the cases in which the user uses `setuptools` directly to build.

> get_library_dirs on Windows gives the wrong directory
> -----------------------------------------------------
>
>                 Key: ARROW-3183
>                 URL: https://issues.apache.org/jira/browse/ARROW-3183
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.9.0, 0.10.0
>         Environment: Windows 10
> Anaconda Python 3.6
>            Reporter: Victor Uriarte
>            Priority: Minor
>
> Python Version: Anaconda 3.6
> PyArrow Version: 0.9.0 and 0.10.0
> Installed by: conda
> {{The function pa.get_library_dirs() points to the wrong directory}}
> {{import pyarrow as pa}}
> {{print(pa.get_library_dirs())}}
> returns: (the extra spaces are due to the bolding)
> {{['C:\\Anaconda\\lib\\site-packages\\pyarrow', 
> 'C:\\Anaconda\\*lib*\\Library\\lib']}}
> but it should be:
> {{['C:\\Anaconda\\lib\\site-packages\\pyarrow', 
> 'C:\\Anaconda\\Library\\lib']}}
> Not sure if this is dependent on how `pyarrow` was installed on the system.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to