Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-1779

Remove hard references to /usr/lib/pythonX.Y/site-packages from all files (shell scripts, java, poms, python)

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: infra
    • Labels:
      None
    • Environment:

      Fedora

      Description

      Hard references to /usr/lib/pythonX.Y/site-packages should be eliminated from the build process and java/runtime scripts for portability.

      Any python modules in site-packages should be importable (ie, a proper package) and will be found on the standard python path. Therefore, any code that needs to be run from those modules can be run with python wrapper scripts located in /usr/bin or /usr/sbin (for example) without an explicit path reference.

      Python code in site-packages that is not importable should be made so and run from a wrapper, or it should be relocated (to /usr/lib/exec/ambari, for example)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmckay Trevor McKay
                Reporter:
                tmckay Trevor McKay
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: