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

[Python] pkg_resources is slow

    XMLWordPrintableJSON

Details

    Description

      Importing and calling pkg_resources at pyarrow import time to get the version number is slow (around 200 ms. here, out of 640 ms. total for importing pyarrow).

      Instead we could generate a version file, which seems possible using setuptools_scm's write_to parameter: https://github.com/pypa/setuptools_scm/#configuration-parameters

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 50m
                  50m