mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
Python 3.8 removed the platform.linux_distribution() function which is currently used to detect Redhat. This switches to using the 'distro' package, which implements the same functionality across different Python versions. Since Redhat 6 is no longer supported, this removes the detection of Redhat 6 and associated skip logic. Testing: - Ran a core job Change-Id: I0dfaf798c0239f6068f29adbd2eafafdbbfd66c3 Reviewed-on: http://gerrit.cloudera.org:8080/22073 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Reviewed-by: Riza Suminto <riza.suminto@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
To install new packages: 1) Add your package to deps/requirements.txt, or deps/compiled-requirements.txt if the the package needs a C/C++ compiler to build . You should specify the version number using the "foo == x.y.z" notation so future upgrades can be done automatically. 2) Run deps/download_requirements, it will download the package to the deps dir. 3) Run the "impala-python" command, this should detect that requirements.txt changed and automatically rebuild the virtualenv. 4) Now in the python prompt, you should be able to import the new module. To upgrade a package: 1) Edit deps/requirement.txt to use the version you need. 2) Go to step 2 above.