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

[Packaging][Python] PyPI pyarrow source dist (sdist) contains architecture dependent binaries

Details

    Description

      Downloading the most recent pyarrow "sdist" source tarball from Pypi and upon extraction, the package contains multiple binary libraries compiled for x86-64. (libarrow, libparquet, etc.) 

       

      The ultimate result is that this isn't a source package at all - it would be fine to include binaries in a python wheel but including arch/platform specific binaries in a sdist breaks pip and the install. (In my case, trying to install on aarch64.)

      As a general observation, this will become a larger issue as, for example, the ARM-based Macs come to market. 

      That said, one commonly implemented option is to make the python source package download and build any dependent libraries. 

       

      At the very least, the source package should not contain binaries. I suppose it's not much different from a source Debian package containing compiled binary code.

       

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              danieldjewell Daniel Jewell
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m

                  Slack

                    Issue deployment