{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/virtualenv/issues/1214","repository_url":"https://api.github.com/repos/pypa/virtualenv","labels_url":"https://api.github.com/repos/pypa/virtualenv/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/pypa/virtualenv/issues/1214/comments","events_url":"https://api.github.com/repos/pypa/virtualenv/issues/1214/events","html_url":"https://github.com/pypa/virtualenv/issues/1214","id":370197520,"node_id":"MDU6SXNzdWUzNzAxOTc1MjA=","number":1214,"title":"virtualenv does not copy all Python2.7/Lib files","user":{"login":"MaheshVenkateshwaran1203","id":6301920,"node_id":"MDQ6VXNlcjYzMDE5MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/6301920?v=4","gravatar_id":"","url":"https://api.github.com/users/MaheshVenkateshwaran1203","html_url":"https://github.com/MaheshVenkateshwaran1203","followers_url":"https://api.github.com/users/MaheshVenkateshwaran1203/followers","following_url":"https://api.github.com/users/MaheshVenkateshwaran1203/following{/other_user}","gists_url":"https://api.github.com/users/MaheshVenkateshwaran1203/gists{/gist_id}","starred_url":"https://api.github.com/users/MaheshVenkateshwaran1203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaheshVenkateshwaran1203/subscriptions","organizations_url":"https://api.github.com/users/MaheshVenkateshwaran1203/orgs","repos_url":"https://api.github.com/users/MaheshVenkateshwaran1203/repos","events_url":"https://api.github.com/users/MaheshVenkateshwaran1203/events{/privacy}","received_events_url":"https://api.github.com/users/MaheshVenkateshwaran1203/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-15T14:44:18Z","updated_at":"2018-10-27T18:43:58Z","closed_at":"2018-10-27T18:43:58Z","author_association":"NONE","body":"I am trying to create a virtualenv for a specific pthon version (python2.7.10).\r\nHowever, during deployment inside a container, I get a import error for pip (__future__ not found)\r\nI see that during the virtualenv creation, system libraries are not copied.\r\nAm I missing something? \r\n\r\nSteps\r\n\r\nsudo -H pip install virtualenv\r\ncd /app_path\r\nmkdir my_tmp\r\ncd my_tmp\r\nwget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz\r\ntar -zxvf Python-2.7.10.tgz\r\ncd Python-2.7.10\r\n./configure --prefix=/app_path/my_tmp/.localpython\r\nmake\r\nmake install\r\ncd /app_path\r\nvirtualenv --always-copy --system-site-packages venv -p  my_tmp/.localpython/bin/python2.7\r\n\r\n__future__.py is present in the source directory where python was installed\r\n\r\nls my_tmp/Python-2.7.10/Lib/__future__.py\r\nmy_tmp/Python-2.7.10/Lib/__future__.py\r\n\r\nHowever the same is not there inside the venv.\r\n\r\nls venv/lib/python2.7/\r\n_abcoll.py   codecs.pyc    encodings        lib-dynload    ntpath.py        posixpath.pyc  site.pyc           sre_parse.py   types.py      warnings.pyc\r\n_abcoll.pyc  config        fnmatch.py       linecache.py   orig-prefix.txt  re.py          sre_compile.py     sre_parse.pyc  types.pyc     _weakrefset.py\r\nabc.py       copy_reg.py   fnmatch.pyc      linecache.pyc  os.py            re.pyc         sre_compile.pyc    sre.py         UserDict.py   _weakrefset.pyc\r\nabc.pyc      copy_reg.pyc  genericpath.py   locale.py      os.pyc           site-packages  sre_constants.py   stat.py        UserDict.pyc\r\ncodecs.py    distutils     genericpath.pyc  locale.pyc     posixpath.py     site.py        sre_constants.pyc  stat.pyc       warnings.py\r\n\r\n\r\nvirtualenv --version\r\n16.0.0\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/virtualenv/issues/comments/433645386","html_url":"https://github.com/pypa/virtualenv/issues/1214#issuecomment-433645386","issue_url":"https://api.github.com/repos/pypa/virtualenv/issues/1214","id":433645386,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY0NTM4Ng==","user":{"login":"gaborbernat","id":690238,"node_id":"MDQ6VXNlcjY5MDIzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/690238?v=4","gravatar_id":"","url":"https://api.github.com/users/gaborbernat","html_url":"https://github.com/gaborbernat","followers_url":"https://api.github.com/users/gaborbernat/followers","following_url":"https://api.github.com/users/gaborbernat/following{/other_user}","gists_url":"https://api.github.com/users/gaborbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborbernat/subscriptions","organizations_url":"https://api.github.com/users/gaborbernat/orgs","repos_url":"https://api.github.com/users/gaborbernat/repos","events_url":"https://api.github.com/users/gaborbernat/events{/privacy}","received_events_url":"https://api.github.com/users/gaborbernat/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T18:43:58Z","updated_at":"2018-10-27T18:43:58Z","author_association":"CONTRIBUTOR","body":"There's a big price to pay for that kind of flexibility, and virtualenvs goal is to be a lightweight tool. If you want full python environment and not just a virtualenv of an existing one you're encouraged to install those python versions separately. You have the option of installing python with the main installer downloaded from python.org, pyenv, conda or anyway else. Creating full python copies is out of scope for virtualenv."}}
{"actor":{"display_login":"gaborbernat"}}