{"action":"created","issue":{"url":"https://api.github.com/repos/automl/auto-sklearn/issues/155","repository_url":"https://api.github.com/repos/automl/auto-sklearn","labels_url":"https://api.github.com/repos/automl/auto-sklearn/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/automl/auto-sklearn/issues/155/comments","events_url":"https://api.github.com/repos/automl/auto-sklearn/issues/155/events","html_url":"https://github.com/automl/auto-sklearn/issues/155","id":181011277,"number":155,"title":"Install auto-sklearn in mac","user":{"login":"dragonfly90","id":4010644,"avatar_url":"https://avatars.githubusercontent.com/u/4010644?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonfly90","html_url":"https://github.com/dragonfly90","followers_url":"https://api.github.com/users/dragonfly90/followers","following_url":"https://api.github.com/users/dragonfly90/following{/other_user}","gists_url":"https://api.github.com/users/dragonfly90/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonfly90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonfly90/subscriptions","organizations_url":"https://api.github.com/users/dragonfly90/orgs","repos_url":"https://api.github.com/users/dragonfly90/repos","events_url":"https://api.github.com/users/dragonfly90/events{/privacy}","received_events_url":"https://api.github.com/users/dragonfly90/received_events","type":"User","site_admin":false},"labels":[{"id":231629892,"url":"https://api.github.com/repos/automl/auto-sklearn/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":231629893,"url":"https://api.github.com/repos/automl/auto-sklearn/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-10-04T21:36:05Z","updated_at":"2016-11-24T05:39:27Z","closed_at":null,"body":"Try to install auto-sklearn in mac. There is an error: Failed building wheel for pyrfr. Is the mac version available?\n"},"comment":{"url":"https://api.github.com/repos/automl/auto-sklearn/issues/comments/262694506","html_url":"https://github.com/automl/auto-sklearn/issues/155#issuecomment-262694506","issue_url":"https://api.github.com/repos/automl/auto-sklearn/issues/155","id":262694506,"user":{"login":"namankumar","id":330364,"avatar_url":"https://avatars.githubusercontent.com/u/330364?v=3","gravatar_id":"","url":"https://api.github.com/users/namankumar","html_url":"https://github.com/namankumar","followers_url":"https://api.github.com/users/namankumar/followers","following_url":"https://api.github.com/users/namankumar/following{/other_user}","gists_url":"https://api.github.com/users/namankumar/gists{/gist_id}","starred_url":"https://api.github.com/users/namankumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namankumar/subscriptions","organizations_url":"https://api.github.com/users/namankumar/orgs","repos_url":"https://api.github.com/users/namankumar/repos","events_url":"https://api.github.com/users/namankumar/events{/privacy}","received_events_url":"https://api.github.com/users/namankumar/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T05:39:27Z","updated_at":"2016-11-24T05:39:27Z","body":"I've successfully installed on Mac OS X 10.12.1 without the need for gcc, which is a redundant (and huge, size-wise) thing to install on a mac given that Apple has adapted Clang specifically for macs. \r\n\r\nYou need 3 things: \r\n1. download a fortran compiler from hpc.sourceforge.net (at this moment, I cannot recall why this is important. I think for Cython)\r\n2. edit PyRFR setup.py so CC points to clang++, which supports C++11 headers.\r\n3. add a flag to PyRFR for clang++ so the minimum Mac OS X version is 10.9 else the C++11 isn't picked up.  By default, the package will compile with the same flags that your Python installation was compiled with. The Mac OS X version at the time python was compiled was probably before C++11 became pervasive.\r\n\r\nHappy to help out if anyone needs a hand getting this up and running. \r\n\r\nHere is what my PyRFR setup.py looks like. I added extra flags/options for convenience.\r\n```\r\nfrom distutils.core import setup, Extension\r\nimport distutils.command.build\r\nimport numpy as np\r\nfrom subprocess import call\r\nfrom Cython.Build import cythonize\r\nimport os\r\n\r\nos.environ[\"CC\"] = \"clang++\"\r\nos.environ[\"CFLAGS\"] = \"\"\r\nos.environ[\"LINKCC\"] = \"\"\r\n#os.environ[\"MACOSX_DEPLOYMENT_TARGET\"] = \"10.9\"                                                  \r\n\r\ninclude_dirs = ['./include', '/Users/naman/miniconda3/envs/envautosklearn/lib/python3.5/site-pack\\\r\nages/numpy/core/include']\r\nextra_compile_args = ['-std=c++11','-stdlib=libc++', '-mmacosx-version-min=10.9']\r\n\r\nextensions = cythonize(\r\n                                        [\r\n                                                Extension('pyrfr.regression',\r\n                                                sources=['pyrfr/regression.pyx'],\r\n                                                language=\"c++\",\r\n                                                include_dirs=include_dirs,\r\n                                                extra_compile_args = extra_compile_args\r\n                                                ),\r\n\r\n                                                Extension('pyrfr.regression32',\r\n                                                sources=['pyrfr/regression32.pyx'],\r\n                                                language=\"c++\",\r\n                                                include_dirs=include_dirs,\r\n                                                extra_compile_args = extra_compile_args\r\n                                                )\r\n                                        ])\r\nsetup(\r\n        name='pyrfr',\r\n        version='0.2.1',\r\n        author='Stefan Falkner',\r\n        author_email='sfalkner@cs.uni-freiburg.de',\r\n        license='Use as you wish. No guarantees whatsoever.',\r\n        classifiers=['Development Status :: 3 - Alpha'],\r\n        packages=['pyrfr'],\r\n        ext_modules=extensions\r\n)\r\n\r\n```"}}
{"actor":{"display_login":"namankumar"}}