{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/8857","labels_url":"https://api.github.com/repos/sympy/sympy/issues/8857/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/8857/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/8857/events","html_url":"https://github.com/sympy/sympy/issues/8857","id":54915263,"number":8857,"title":"python setup.py clean is not cross platform","user":{"login":"moorepants","id":276007,"avatar_url":"https://avatars.githubusercontent.com/u/276007?v=3","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sympy/sympy/labels/Easy+to+Fix","name":"Easy to Fix","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-20T17:45:56Z","updated_at":"2015-01-21T08:56:55Z","closed_at":null,"body":"`find` and `rm` are not generally available on Windows. This should switch to using Python builtin functions to do the same thing."},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/70803937","html_url":"https://github.com/sympy/sympy/issues/8857#issuecomment-70803937","issue_url":"https://api.github.com/repos/sympy/sympy/issues/8857","id":70803937,"user":{"login":"darshanime","id":6951919,"avatar_url":"https://avatars.githubusercontent.com/u/6951919?v=3","gravatar_id":"","url":"https://api.github.com/users/darshanime","html_url":"https://github.com/darshanime","followers_url":"https://api.github.com/users/darshanime/followers","following_url":"https://api.github.com/users/darshanime/following{/other_user}","gists_url":"https://api.github.com/users/darshanime/gists{/gist_id}","starred_url":"https://api.github.com/users/darshanime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darshanime/subscriptions","organizations_url":"https://api.github.com/users/darshanime/orgs","repos_url":"https://api.github.com/users/darshanime/repos","events_url":"https://api.github.com/users/darshanime/events{/privacy}","received_events_url":"https://api.github.com/users/darshanime/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T08:56:55Z","updated_at":"2015-01-21T08:56:55Z","body":"Thank you for the suggestions. \r\n\r\nHow about this ?\r\n\r\n```python\r\n\r\nimport os\r\nimport shutil\r\n\r\nfor root, dirs, files in os.walk(\".\"):\r\n\tfor file in files:\r\n   \t\tif file.endswith('.pyc') and os.path.isfile:\r\n\t\t\tos.remove(os.path.join(root, file)) \r\n\t\t\t\r\n\r\nif os.path.isfile(\"python-build-stamp-2.4\"): os.remove(\"python-build-stamp-2.4\")\r\nif os.path.isfile(\"MANIFEST\"): os.remove(\"MANIFEST\")\r\nif os.path.isdir(\"build\"): shutil.rmtree(\"build\")\r\nif os.path.isdir(\"dist\"): shutil.rmtree(\"dist\")\r\nif os.path.isdir(\"doc/_build\"): shutil.rmtree(\"doc/_build\")\r\nif os.path.isfile(\"sample.tex\"): os.remove(\"sample.tex\")\r\n```\r\n\t"}}