{"action":"opened","issue":{"url":"https://api.github.com/repos/conda/conda-env/issues/174","labels_url":"https://api.github.com/repos/conda/conda-env/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-env/issues/174/comments","events_url":"https://api.github.com/repos/conda/conda-env/issues/174/events","html_url":"https://github.com/conda/conda-env/issues/174","id":109154862,"number":174,"title":"code smell:  pip.py - import conda_args directly from conda.pip instead of indirectly importing","user":{"login":"bkreider","id":1699478,"avatar_url":"https://avatars.githubusercontent.com/u/1699478?v=3","gravatar_id":"","url":"https://api.github.com/users/bkreider","html_url":"https://github.com/bkreider","followers_url":"https://api.github.com/users/bkreider/followers","following_url":"https://api.github.com/users/bkreider/following{/other_user}","gists_url":"https://api.github.com/users/bkreider/gists{/gist_id}","starred_url":"https://api.github.com/users/bkreider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkreider/subscriptions","organizations_url":"https://api.github.com/users/bkreider/orgs","repos_url":"https://api.github.com/users/bkreider/repos","events_url":"https://api.github.com/users/bkreider/events{/privacy}","received_events_url":"https://api.github.com/users/bkreider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-30T18:46:25Z","updated_at":"2015-09-30T18:46:25Z","closed_at":null,"body":"Why does pip.py do this import rather than get it from the original file?  It's actually only getting pip_args, because conda.cli.main_list has imported conda.pip.conda_args.\r\n```\r\nfrom conda.cli import main_list\r\n\r\ndef install(prefix, specs, args, env):\r\n    pip_cmd = main_list.pip_args(prefix) + ['install', ] + specs\r\n    process = subprocess.Popen(pip_cmd, universal_newlines=True)\r\n    process.communicate()\r\n```\r\n\r\nInstead of importing main_list, it should be this:\r\n```\r\nfrom conda.api import pip_args\r\n```"}}