Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-18129

[Python] get_include() gives wrong directory in conda environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 9.0.0
    • None
    • Python
    • conda

    Description

      get_include seems to do:

       

      def get_include():
          """
          Return absolute path to directory containing Arrow C++ include
          headers. Similar to numpy.get_include
          """
          return _os.path.join(_os.path.dirname(__file__), 'include') 

      This returns something like:

      /path/to/myconda/envs/envname/lib/python3.8/site-packages/pyarrow/include

      which does not exist in a conda environment. The path where the headers actually get installed is to:

       

      $ echo $CONDA_PREFIX
      /path/to/myconda/envs/envname
      
      $ ls $CONDA_PREFIX/include/arrow | head
      adapters
      api.h
      array
      array.h
      buffer_builder.h
      buffer.h
      builder.h
      c
      chunked_array.h
      chunk_resolver.h
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              LeftScreenCorner Left Screen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: