{"action":"created","issue":{"url":"https://api.github.com/repos/benhoyt/scandir/issues/51","labels_url":"https://api.github.com/repos/benhoyt/scandir/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/benhoyt/scandir/issues/51/comments","events_url":"https://api.github.com/repos/benhoyt/scandir/issues/51/events","html_url":"https://github.com/benhoyt/scandir/issues/51","id":98494636,"number":51,"title":"scandir fails to compile with PyPy and PyPy3 virtualenvs","user":{"login":"aarzee","id":3758364,"avatar_url":"https://avatars.githubusercontent.com/u/3758364?v=3","gravatar_id":"","url":"https://api.github.com/users/aarzee","html_url":"https://github.com/aarzee","followers_url":"https://api.github.com/users/aarzee/followers","following_url":"https://api.github.com/users/aarzee/following{/other_user}","gists_url":"https://api.github.com/users/aarzee/gists{/gist_id}","starred_url":"https://api.github.com/users/aarzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarzee/subscriptions","organizations_url":"https://api.github.com/users/aarzee/orgs","repos_url":"https://api.github.com/users/aarzee/repos","events_url":"https://api.github.com/users/aarzee/events{/privacy}","received_events_url":"https://api.github.com/users/aarzee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-01T00:59:44Z","updated_at":"2015-08-01T01:19:31Z","closed_at":null,"body":"I've been testing my package with various combinations of additional optional packages, and in my PyPy and PyPy3 virtual environments, compilation always fails. This is on OS X with PyPy, PyPy3 and CPython 2.7.10 (with pip) installed through Homebrew and with virtualenv installed through pip, and all packages on the pip installation fully updated.\r\n\r\nPyPy:\r\n```\r\n(pypy)Carloss-MacBook-Pro:~ aarzee$ pip install scandir\r\nCollecting scandir\r\n  Using cached scandir-1.1.tar.gz\r\nBuilding wheels for collected packages: scandir\r\n  Running setup.py bdist_wheel for scandir\r\n  Complete output from command /Users/aarzee/airship/envs/pypy/bin/pypy -c \"import setuptools;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-WoU6on/scandir/setup.py';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" bdist_wheel -d /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/tmpUXh6s1pip-wheel-:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib.macosx-10.10-x86_64-2.7\r\n  copying scandir.py -> build/lib.macosx-10.10-x86_64-2.7\r\n  running build_ext\r\n  building '_scandir' extension\r\n  creating build/temp.macosx-10.10-x86_64-2.7\r\n  cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/aarzee/airship/envs/pypy/include -c _scandir.c -o build/temp.macosx-10.10-x86_64-2.7/_scandir.o\r\n  _scandir.c:17:10: fatal error: 'osdefs.h' file not found\r\n  #include <osdefs.h>\r\n           ^\r\n  1 error generated.\r\n  error: command 'cc' failed with exit status 1\r\n  \r\n  ----------------------------------------\r\n  Failed building wheel for scandir\r\nFailed to build scandir\r\nInstalling collected packages: scandir\r\n  Running setup.py install for scandir\r\n    Complete output from command /Users/aarzee/airship/envs/pypy/bin/pypy -c \"import setuptools, tokenize;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-WoU6on/scandir/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-Yy7_Eu-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/aarzee/airship/envs/pypy/include/site/python2.7/scandir:\r\n    running install\r\n    running build\r\n    running build_py\r\n    running build_ext\r\n    building '_scandir' extension\r\n    cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/aarzee/airship/envs/pypy/include -c _scandir.c -o build/temp.macosx-10.10-x86_64-2.7/_scandir.o\r\n    _scandir.c:17:10: fatal error: 'osdefs.h' file not found\r\n    #include <osdefs.h>\r\n             ^\r\n    1 error generated.\r\n    error: command 'cc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nCommand \"/Users/aarzee/airship/envs/pypy/bin/pypy -c \"import setuptools, tokenize;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-WoU6on/scandir/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-Yy7_Eu-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/aarzee/airship/envs/pypy/include/site/python2.7/scandir\" failed with error code 1 in /private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-WoU6on/scandir\r\n```\r\n\r\nPyPy3:\r\n```\r\nCollecting scandir\r\n  Using cached scandir-1.1.tar.gz\r\nBuilding wheels for collected packages: scandir\r\n  Running setup.py bdist_wheel for scandir\r\n  Complete output from command /Users/aarzee/airship/envs/pypy3/bin/pypy3 -c \"import setuptools;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-2tdqnn/scandir/setup.py';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" bdist_wheel -d /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/tmp_9g_ogpip-wheel-:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib.macosx-10.10-x86_64-3.2\r\n  copying scandir.py -> build/lib.macosx-10.10-x86_64-3.2\r\n  running build_ext\r\n  building '_scandir' extension\r\n  creating build/temp.macosx-10.10-x86_64-3.2\r\n  cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/aarzee/airship/envs/pypy3/include -c _scandir.c -o build/temp.macosx-10.10-x86_64-3.2/_scandir.o\r\n  _scandir.c:17:10: fatal error: 'osdefs.h' file not found\r\n  #include <osdefs.h>\r\n           ^\r\n  1 error generated.\r\n  error: command 'cc' failed with exit status 1\r\n  \r\n  ----------------------------------------\r\n  Failed building wheel for scandir\r\nFailed to build scandir\r\nInstalling collected packages: scandir\r\n  Running setup.py install for scandir\r\n    Complete output from command /Users/aarzee/airship/envs/pypy3/bin/pypy3 -c \"import setuptools, tokenize;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-2tdqnn/scandir/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-dh64dj-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/aarzee/airship/envs/pypy3/include/site/python3.2/scandir:\r\n    running install\r\n    running build\r\n    running build_py\r\n    running build_ext\r\n    building '_scandir' extension\r\n    cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/aarzee/airship/envs/pypy3/include -c _scandir.c -o build/temp.macosx-10.10-x86_64-3.2/_scandir.o\r\n    _scandir.c:17:10: fatal error: 'osdefs.h' file not found\r\n    #include <osdefs.h>\r\n             ^\r\n    1 error generated.\r\n    error: command 'cc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nCommand \"/Users/aarzee/airship/envs/pypy3/bin/pypy3 -c \"import setuptools, tokenize;__file__='/private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-2tdqnn/scandir/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-dh64dj-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/aarzee/airship/envs/pypy3/include/site/python3.2/scandir\" failed with error code 1 in /private/var/folders/nj/r2hr0zg5119br99qrpwcgtp80000gn/T/pip-build-2tdqnn/scandir\r\n```"},"comment":{"url":"https://api.github.com/repos/benhoyt/scandir/issues/comments/126845162","html_url":"https://github.com/benhoyt/scandir/issues/51#issuecomment-126845162","issue_url":"https://api.github.com/repos/benhoyt/scandir/issues/51","id":126845162,"user":{"login":"benhoyt","id":999033,"avatar_url":"https://avatars.githubusercontent.com/u/999033?v=3","gravatar_id":"","url":"https://api.github.com/users/benhoyt","html_url":"https://github.com/benhoyt","followers_url":"https://api.github.com/users/benhoyt/followers","following_url":"https://api.github.com/users/benhoyt/following{/other_user}","gists_url":"https://api.github.com/users/benhoyt/gists{/gist_id}","starred_url":"https://api.github.com/users/benhoyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhoyt/subscriptions","organizations_url":"https://api.github.com/users/benhoyt/orgs","repos_url":"https://api.github.com/users/benhoyt/repos","events_url":"https://api.github.com/users/benhoyt/events{/privacy}","received_events_url":"https://api.github.com/users/benhoyt/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T01:19:31Z","updated_at":"2015-08-01T01:19:31Z","body":"If that works, I can include that version of `osdef.h` in the scandir repo."}}