{"action":"created","issue":{"url":"https://api.github.com/repos/healpy/healpy/issues/216","labels_url":"https://api.github.com/repos/healpy/healpy/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/healpy/healpy/issues/216/comments","events_url":"https://api.github.com/repos/healpy/healpy/issues/216/events","html_url":"https://github.com/healpy/healpy/issues/216","id":53971956,"number":216,"title":"Build healpy in Anaconda on Mac Mavericks \"No script named 'pykg-config.py'\"","user":{"login":"taldcroft","id":348089,"avatar_url":"https://avatars.githubusercontent.com/u/348089?v=3","gravatar_id":"","url":"https://api.github.com/users/taldcroft","html_url":"https://github.com/taldcroft","followers_url":"https://api.github.com/users/taldcroft/followers","following_url":"https://api.github.com/users/taldcroft/following{/other_user}","gists_url":"https://api.github.com/users/taldcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/taldcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taldcroft/subscriptions","organizations_url":"https://api.github.com/users/taldcroft/orgs","repos_url":"https://api.github.com/users/taldcroft/repos","events_url":"https://api.github.com/users/taldcroft/events{/privacy}","received_events_url":"https://api.github.com/users/taldcroft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-10T21:27:55Z","updated_at":"2015-01-12T19:01:46Z","closed_at":null,"body":"I'm trying to install healpy to Anaconda on Mac Mavericks and running into a problem that appears related to `pykg-config.py`.  Any help would be appreciated.  Below is the abbreviated version of the [full build log](https://gist.github.com/taldcroft/fad8037be3cd6641e6ec) :\r\n```\r\n(ska)neptune$ python setup.py build\r\npkg-config is not installed, falling back to pykg-config\r\nrunning build\r\nrunning build_py\r\nrunning build_clib\r\nchecking if configure script for library 'cfitsio' exists\r\nchecking if configure script for library 'healpix_cxx' exists\r\nchecking if library 'cfitsio' is installed\r\nTraceback (most recent call last):\r\n  File \"/Users/aldcroft/Downloads/healpy-1.8.1/pykg_config.py\", line 3, in <module>\r\n    run_script('pykg-config >= 1.2.0', 'pykg-config.py')\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py\", line 696, in run_script\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py\", line 1606, in run_script\r\npkg_resources.ResolutionError: No script named 'pykg-config.py'\r\nbuilding library 'cfitsio' from source\r\n/bin/sh /Users/aldcroft/Downloads/healpy-1.8.1/cfitsio/configure --prefix=/Users/aldcroft/Downloads/healpy-1.8.1/build/temp.macosx-10.5-x86_64-2.7 --disable-shared --with-pic --disable-maintainer-mode\r\nconfigure: WARNING: unrecognized options: --disable-shared, --with-pic, --disable-maintainer-mode\r\nchecking build system type... x86_64-apple-darwin13.4.0\r\nchecking host system type... x86_64-apple-darwin13.4.0\r\nchecking target system type... x86_64-apple-darwin13.4.0\r\nchecking for gcc... clang\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether clang accepts -g... yes\r\nchecking for clang option to accept ISO C89... none needed\r\nchecking for gfortran... no\r\nchecking for g95... no\r\nchecking for g77... no\r\nchecking for f77... no\r\nchecking for ifort... no\r\nchecking for f95... no\r\nchecking for f90... no\r\nchecking for xlf... no\r\nchecking for cf77... no\r\nchecking for gf77... no\r\nchecking for af77... no\r\nchecking for ncf... no\r\nchecking for f2c... no\r\nconfigure: WARNING: cfitsio: == No acceptable Fortran compiler found in $PATH\r\nconfigure: cfitsio: == Adding wrapper support for GNU Fortran by default\r\nchecking for ar... ar\r\nchecking for ranlib... ranlib\r\nchecking how to run the C preprocessor... clang -E\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for ANSI C header files... rm: conftest.dSYM: is a directory\r\nrm: conftest.dSYM: is a directory\r\nyes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for string.h... (cached) yes\r\nchecking math.h usability... yes\r\nchecking math.h presence... yes\r\nchecking for math.h... yes\r\nchecking limits.h usability... yes\r\nchecking limits.h presence... yes\r\nchecking for limits.h... yes\r\nchecking whether clang accepts -arch i386 -arch x86_64... yes\r\ncfitsio: == Using gcc version 4.2.1\r\nchecking \"whether ftruncate works\"... \"yes\"\r\nchecking \"whether long long is defined\"... \"yes\"\r\nchecking \"whether system V style IPC services are supported\"... \"yes\"\r\nchecking \"do we have flock_t defined in sys/fcntl.h\"... \"no\"\r\nchecking \"do we have flock_t defined in sys/flock.h\"... \"no\"\r\nchecking \"do we have union semun defined\"... \"yes\"\r\nchecking for library containing gethostbyname... none required\r\nchecking for library containing connect... none required\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfigure: WARNING: unrecognized options: --disable-shared, --with-pic, --disable-maintainer-mode\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating cfitsio.pc\r\nconfigure: WARNING: unrecognized options: --disable-shared, --with-pic, --disable-maintainer-mode\r\n \r\n    Congratulations, Makefile update was successful.\r\n    You may want to run \"make\" now.\r\n \r\nmake install\r\n/bin/cp -a libcfitsio* /Users/aldcroft/Downloads/healpy-1.8.1/build/temp.macosx-10.5-x86_64-2.7/lib\r\n/bin/cp fitsio.h fitsio2.h longnam.h drvrsmem.h /Users/aldcroft/Downloads/healpy-1.8.1/build/temp.macosx-10.5-x86_64-2.7/include\r\n/bin/cp cfitsio.pc /Users/aldcroft/Downloads/healpy-1.8.1/build/temp.macosx-10.5-x86_64-2.7/lib/pkgconfig\r\nTraceback (most recent call last):\r\n  File \"/Users/aldcroft/Downloads/healpy-1.8.1/pykg_config.py\", line 3, in <module>\r\n    run_script('pykg-config >= 1.2.0', 'pykg-config.py')\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py\", line 696, in run_script\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py\", line 1606, in run_script\r\npkg_resources.ResolutionError: No script named 'pykg-config.py'\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 445, in <module>\r\n    license='GPLv2'\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/core.py\", line 151, in setup\r\n    dist.run_commands()\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/command/build.py\", line 127, in run\r\n    self.run_command(cmd_name)\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n    self.distribution.run_command(command)\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/Users/aldcroft/anaconda/envs/ska/lib/python2.7/distutils/command/build_clib.py\", line 116, in run\r\n    self.build_libraries(self.libraries)\r\n  File \"setup.py\", line 303, in build_libraries\r\n    for key, value in self.build_library(lib_name, **build_info).items():\r\n  File \"setup.py\", line 243, in build_library\r\n    build_args = self.pkgconfig(pkg_config_name)\r\n  File \"setup.py\", line 167, in pkgconfig\r\n    args = [token[index:].decode() for token in check_output(cmd, env=self._environ).split()]\r\n  File \"setup.py\", line 77, in check_output\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '('/Users/aldcroft/anaconda/envs/ska/bin/python', '/Users/aldcroft/Downloads/healpy-1.8.1/pykg_config.py', '--cflags-only-I', 'cfitsio')' returned non-zero exit status 1\r\n```"},"comment":{"url":"https://api.github.com/repos/healpy/healpy/issues/comments/69624948","html_url":"https://github.com/healpy/healpy/issues/216#issuecomment-69624948","issue_url":"https://api.github.com/repos/healpy/healpy/issues/216","id":69624948,"user":{"login":"lpsinger","id":728407,"avatar_url":"https://avatars.githubusercontent.com/u/728407?v=3","gravatar_id":"","url":"https://api.github.com/users/lpsinger","html_url":"https://github.com/lpsinger","followers_url":"https://api.github.com/users/lpsinger/followers","following_url":"https://api.github.com/users/lpsinger/following{/other_user}","gists_url":"https://api.github.com/users/lpsinger/gists{/gist_id}","starred_url":"https://api.github.com/users/lpsinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpsinger/subscriptions","organizations_url":"https://api.github.com/users/lpsinger/orgs","repos_url":"https://api.github.com/users/lpsinger/repos","events_url":"https://api.github.com/users/lpsinger/events{/privacy}","received_events_url":"https://api.github.com/users/lpsinger/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T19:01:46Z","updated_at":"2015-01-12T19:01:46Z","body":"Oh, duh. Both of my test systems have `pkg-config`; that's why I couldn't reproduce it. I removed `pkg-config` and now I can reproduce this on Yosemite."}}