{"action":"opened","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/649","labels_url":"https://api.github.com/repos/conda/conda-build/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/649/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/649/events","html_url":"https://github.com/conda/conda-build/issues/649","id":113385318,"number":649,"title":"Build fails if using namespace packages","user":{"login":"remram44","id":426784,"avatar_url":"https://avatars.githubusercontent.com/u/426784?v=3","gravatar_id":"","url":"https://api.github.com/users/remram44","html_url":"https://github.com/remram44","followers_url":"https://api.github.com/users/remram44/followers","following_url":"https://api.github.com/users/remram44/following{/other_user}","gists_url":"https://api.github.com/users/remram44/gists{/gist_id}","starred_url":"https://api.github.com/users/remram44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remram44/subscriptions","organizations_url":"https://api.github.com/users/remram44/orgs","repos_url":"https://api.github.com/users/remram44/repos","events_url":"https://api.github.com/users/remram44/events{/privacy}","received_events_url":"https://api.github.com/users/remram44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T15:49:44Z","updated_at":"2015-10-26T15:49:44Z","closed_at":null,"body":"I have two libs that share a namespace package, and one of them depends on the other.\r\n\r\nWhen building the one that has the dependency, the build fails with \"`OSError: File exists: <path to the namespace directory>`\". It looks like you are not handling the fact that the directory will already have been created while installing the first package.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/remirampin/anaconda/bin/conda-build\", line 5, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 190, in main\r\n    args_func(args, p)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 468, in args_func\r\n    args.func(args, p)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 391, in execute\r\n    override_channels=args.override_channels, include_recipe=args.include_recipe)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/build.py\", line 455, in build\r\n    post_process(sorted(files2 - files1), preserve_egg_dir=bool(m.get_value('build/preserve_egg_dir')))\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/post.py\", line 148, in post_process\r\n    remove_easy_install_pth(files, preserve_egg_dir=preserve_egg_dir)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/post.py\", line 105, in remove_easy_install_pth\r\n    utils.copy_into(join(egg_path, fn), join(sp_dir, fn))\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/site-packages/conda_build/utils.py\", line 34, in copy_into\r\n    shutil.copytree(srcname, dstname)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/shutil.py\", line 177, in copytree\r\n    os.makedirs(dst)\r\n  File \"/Users/remirampin/anaconda/lib/python2.7/os.py\", line 157, in makedirs\r\n    mkdir(name, mode)\r\nOSError: [Errno 17] File exists: '/Users/remirampin/anaconda/envs/_build/lib/python2.7/site-packages/reprounzip/unpackers'\r\n```"}}