Repository: pypa/virtualenv

Issue:
`license` builtin while inside a virtualenv has odd behaviour
If you want to see my puzzled reaction to this [I caught it on stream](https://www.youtube.com/watch?v=YEY-cbjPB2o&t=1h41m26s)

The `license` builtin acts strangely, but only while in a virtualenv:

```console
$ head -3 LICENSE 
Copyright (c) 2017 Anthony Sottile

Permission is hereby granted, free of charge, to any person obtaining a copy
$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> license
Type license() to see the full license text
>>> 
$ python2
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> license
Type license() to see the full license text
>>> 
$ virtualenv --version
16.4.0
$ virtualenv v
Using real prefix '/usr'
Path not in prefix '/home/asottile/opt/venv/include/python3.6m' '/usr'
New python executable in /home/asottile/workspace/pyupgrade/v/bin/python3
Also creating executable in /home/asottile/workspace/pyupgrade/v/bin/python
Installing setuptools, pip, wheel...
done.
$ ./v/bin/python
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> license
Copyright (c) 2017 Anthony Sottile

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```

I suspect this needs to use `real_prefix` to find the appropriate license files


Discussion:

Resolving patch:
diff --git a/virtualenv.py b/virtualenv.py
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -1286,6 +1286,23 @@ def copy_required_files(src_dir, lib_dir, symlink):
             copyfile(join(src_dir, fn), join(lib_dir, fn), symlink)
 
 
+def copy_license(prefix, dst_prefix, lib_dir, symlink):
+    """Copy the license file so `license()` builtin works"""
+    for license_path in (
+        # posix cpython
+        os.path.join(prefix, os.path.relpath(lib_dir, dst_prefix), "LICENSE.txt"),
+        # windows cpython
+        os.path.join(prefix, "LICENSE.txt"),
+        # pypy
+        os.path.join(prefix, "LICENSE"),
+    ):
+        if os.path.exists(license_path):
+            dest = subst_path(license_path, prefix, dst_prefix)
+            copyfile(license_path, dest, symlink)
+            return
+    logger.warn("No LICENSE.txt / LICENSE found in source")
+
+
 def copy_include_dir(include_src, include_dest, symlink):
     """Copy headers from *include_src* to *include_dest* symlinking if required"""
     if not os.path.isdir(include_src):
@@ -1359,6 +1376,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
             copy_required_files(stdlib_dir, lib_dir, symlink)
         # ...and modules
         copy_required_modules(home_dir, symlink)
+        copy_license(prefix, home_dir, lib_dir, symlink)
     finally:
         logger.indent -= 2
     # ...copy tcl/tk
@@ -2165,66 +2183,66 @@ def convert(s):
 JC42F5tuFOhNjcCRqTLHcai+vDNlsmtcb2VrJPzHQfCLjjzi7Iaiy7d/OxuKtx8+wb9v5EcwlXiI
 ayj+DmiJt3kBYSQfQ6Tz4ViwXnJ8mFcKT3oRNEri81F6dMsuPPLihoGupPdL6K0iFFg0iL443t8A
 KNY4Mw3okG7tEZgacfhtDrM0/E7jE3ZRJ9AvnVECU+Wv2mX+KzU70D0OnC5XwfnZ29M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wcGSxUnOhxqXenQnp+bLJnKdAsVQLGy
+UjV3CjMqRsnqekBbQftEiat9un5lH1XVtf2Fq6Yzw39LsE62tFdzKq6lZ6MHjWdV6ta+2j6tDpQw
+pYqqfOacdwZ9eQCUrqVbgXRgrpGt4Xgj+k9UX6cz8SQXUVLfq+sgj+6Mg72h1jOxv+1yEfdyDSGe
+b284bdzfoXsccg91Tw9VmRscHJuIJ4q23RoiXhNkLsoTdCOnl7bDGlC91wVfb6+eH9nqGOR4fO3o
+ITr4EDgpsSvHo955AbTTHb/+/lXxx9CeOMR9m0FzlOugcfRw+/ZA6yj1li0EU57LkALvffdusenh
+/VWcoNfE1XLgEc1MhL//MbCzc06O6ynYJ4P2tGsttg0Un4V3QdHh+Taoll4UTwrcamw+d843bfiM
+YvjMnm6kS/XdoqnAkRNy23we4R4mj1rPtNmdLpB5UHdG0fTnBk2e1MsP4s7OCLcaeIme7WaiOfWa
+J7b4FHwXT3f/5w/o3z6DY7sf7koP2VYvOu+PYM8YD25hcXuTS83zCCwPqNKQFPgTEVrZxxvKakK6
+DFVPDhmDAiVyzTGUonQ9edEj7VRYQ9H7X+4V6Ls=
 """
 )
 
diff --git a/virtualenv_embedded/site.py b/virtualenv_embedded/site.py
--- a/virtualenv_embedded/site.py
+++ b/virtualenv_embedded/site.py
@@ -485,7 +485,7 @@ def setcopyright():
         "license",
         "See https://www.python.org/psf/license/",
         ["LICENSE.txt", "LICENSE"],
-        [os.path.join(here, os.pardir), here, os.curdir],
+        [sys.prefix, os.path.join(here, os.pardir), here, os.curdir],
     )
 
 


Test patch:
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py
--- a/tests/test_virtualenv.py
+++ b/tests/test_virtualenv.py
@@ -595,3 +595,14 @@ def test_create_environment_with_old_pip(tmpdir):
         shutil.copy(str(old_dep), support_dir)
     venvdir = str(tmpdir / "venv")
     virtualenv.create_environment(venvdir, search_dirs=[support_dir], no_wheel=True)
+
+
+def test_license_builtin(clean_python):
+    _, bin_dir, _ = clean_python
+    proc = subprocess.Popen(
+        (os.path.join(bin_dir, "python"), "-c", "license()"), stdin=subprocess.PIPE, stdout=subprocess.PIPE
+    )
+    out_b, _ = proc.communicate(b"q\n")
+    out = out_b.decode()
+    assert not proc.returncode
+    assert "Ian Bicking and Contributors" not in out