{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3678","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3678/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3678/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3678/events","html_url":"https://github.com/pypa/pip/issues/3678","id":154347081,"number":3678,"title":"Packages With Dots In The Name No Longer Install With 8.1.2","user":{"login":"piffey","id":907001,"avatar_url":"https://avatars.githubusercontent.com/u/907001?v=3","gravatar_id":"","url":"https://api.github.com/users/piffey","html_url":"https://github.com/piffey","followers_url":"https://api.github.com/users/piffey/followers","following_url":"https://api.github.com/users/piffey/following{/other_user}","gists_url":"https://api.github.com/users/piffey/gists{/gist_id}","starred_url":"https://api.github.com/users/piffey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piffey/subscriptions","organizations_url":"https://api.github.com/users/piffey/orgs","repos_url":"https://api.github.com/users/piffey/repos","events_url":"https://api.github.com/users/piffey/events{/privacy}","received_events_url":"https://api.github.com/users/piffey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T21:27:12Z","updated_at":"2016-05-11T21:30:09Z","closed_at":null,"body":"* Pip version: 8.1.2\r\n* Python version: 3.5\r\n* Operating System: Arch\r\n\r\n### Description:\r\n\r\nTrying to install a package containing a dot from an internal pypi server. This no longer works due to the addition of pkg_resources.safe_name in 8.1.2 on req names in req_install.py. This change replaces the dot with a dash. \r\n\r\nMy main question being: is this intentional as it breaks pip install with any packages with names like foo.bar? I thought periods in package names were preferred to show ownership of modules with similar names, but maybe there is a PEP I missed somewhere about package naming.\r\n\r\n### What I've run:\r\n\r\n```\r\n# pip install -v foo.bar\r\n\r\n\r\n\r\n  1 location(s) to search for versions of foo.bar:\r\n  * https://pypi.python.org/simple/foo-bar/\r\n  Getting page https://pypi.python.org/simple/foo-bar/\r\n  Looking up \"https://pypi.python.org/simple/foo-bar/\" in the cache\r\n  No cache entry available\r\n  Starting new HTTPS connection (1): pypi.python.org\r\n  \"GET /simple/foo-bar/ HTTP/1.1\" 404 28063\r\n  Status code 404 not in [200, 203, 300, 301]\r\n  Could not fetch URL https://pypi.python.org/simple/foo-bar/: 404 Client Error: Not Found for url: https://pypi.python.org/simple/foo-bar/ - skipping\r\n  Could not find a version that satisfies the requirement foo.bar (from versions: )\r\nCleaning up...\r\nNo matching distribution found for foo.bar\r\nException information:\r\nTraceback (most recent call last):\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/commands/install.py\", line 310, in run\r\n    wb.build(autobuilding=True)\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/wheel.py\", line 750, in build\r\n    self.requirement_set.prepare_files(self.finder)\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/req/req_set.py\", line 370, in prepare_files\r\n    ignore_dependencies=self.ignore_dependencies))\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/req/req_set.py\", line 523, in _prepare_file\r\n    req_to_install.populate_link(\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/req/req_install.py\", line 268, in populate_link\r\n    self.link = finder.find_requirement(self, upgrade)\r\n  File \"/tmp/jet/venv/lib/python3.5/site-packages/pip/index.py\", line 491, in find_requirement\r\n    'No matching distribution found for %s' % req\r\npip.exceptions.DistributionNotFound: No matching distribution found for foo.bar\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/218596144","html_url":"https://github.com/pypa/pip/issues/3678#issuecomment-218596144","issue_url":"https://api.github.com/repos/pypa/pip/issues/3678","id":218596144,"user":{"login":"jamadden","id":1256082,"avatar_url":"https://avatars.githubusercontent.com/u/1256082?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadden","html_url":"https://github.com/jamadden","followers_url":"https://api.github.com/users/jamadden/followers","following_url":"https://api.github.com/users/jamadden/following{/other_user}","gists_url":"https://api.github.com/users/jamadden/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadden/subscriptions","organizations_url":"https://api.github.com/users/jamadden/orgs","repos_url":"https://api.github.com/users/jamadden/repos","events_url":"https://api.github.com/users/jamadden/events{/privacy}","received_events_url":"https://api.github.com/users/jamadden/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T21:30:09Z","updated_at":"2016-05-11T21:30:09Z","body":"This is a duplicate of #3666 but the tl;dr is that your index server needs to be upgraded to support PEP 503 (which states that you should serve packages under their \"canonical name\" (which in particular replaces dots with hyphens).\r\n\r\nThere are lots of comments in that bug from the pip devs explaining rationale and timing (basically this was supposed to happen with pip 8, but a bug kept - and . confused until now)."}}