Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-2654

Update virtualenv: BIGTOP-1635


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.8.0
    • Component/s: None
    • Labels:



      See also https://issues.apache.org/jira/browse/BIGTOP-1635

      hue needs a symlink
      sudo ln s /usr/lib/python2.7/plat*/_sysconfigdata_nd.py /usr/lib/python2.7/

      on Debian8 and Ubuntu14.

      This is the result of an obsolete virtualenv environment with tools/virtual-bootstrap.

      I regenerated virtual-bootstrap from current virtualenv (1), removed the fix_local_scheme section (2), fixed a script in app.reg(3), and removed ctypes (4).

      (1) Download virtualenv, run virtualenv.create_bootstrap_script("") write contents to file

      (2) The call fix_local_scheme(home_dir, symlink) creates an "local" directory with symlinks to "lib". This breaks tools/relocate.sh since every python mode can be reached by local/lib/ and lib/. This creates an additional bogus relative ../ path section in the easy_setup.pth file. AFAIK this "local" dir is not needed here

      (3) This script should activate build/env/bin/python. Ensuring it by prepending it into the PATH for subprocesses.

      (4) ctypes in hue is 1.0.2 . ctypes is bundled with recent pythons and conflicts with the one supplied by hue. bundled by Centos6, Debian8 and Ubuntu14 is 1.1.0. I vote for removing it, since older python/distributions are not target of BIGTOP and may not be target of upstream Hue as well.

      Since the diff contains binary files I will issue a pull request from github.




            • Assignee:
              erickt Erick Tryzelaar
              oflebbe Olaf Flebbe
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: