{"action":"created","issue":{"url":"https://api.github.com/repos/benhoyt/scandir/issues/105","repository_url":"https://api.github.com/repos/benhoyt/scandir","labels_url":"https://api.github.com/repos/benhoyt/scandir/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/benhoyt/scandir/issues/105/comments","events_url":"https://api.github.com/repos/benhoyt/scandir/issues/105/events","html_url":"https://github.com/benhoyt/scandir/issues/105","id":346315786,"node_id":"MDU6SXNzdWUzNDYzMTU3ODY=","number":105,"title":"Jython support","user":{"login":"fabioz","id":117621,"node_id":"MDQ6VXNlcjExNzYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/117621?v=4","gravatar_id":"","url":"https://api.github.com/users/fabioz","html_url":"https://github.com/fabioz","followers_url":"https://api.github.com/users/fabioz/followers","following_url":"https://api.github.com/users/fabioz/following{/other_user}","gists_url":"https://api.github.com/users/fabioz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabioz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabioz/subscriptions","organizations_url":"https://api.github.com/users/fabioz/orgs","repos_url":"https://api.github.com/users/fabioz/repos","events_url":"https://api.github.com/users/fabioz/events{/privacy}","received_events_url":"https://api.github.com/users/fabioz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-31T18:55:59Z","updated_at":"2018-08-01T11:25:59Z","closed_at":null,"author_association":"NONE","body":"Right now, it seems doing a `pip install scandir` will fail on Jython with:\r\n\r\n`error: Compiling extensions is not supported on Jython`\r\n\r\nAs it seems like the library should work without extensions, I think there should be no issues in running it with Jython 2.7 (provided that it could be installed with pip).\r\n\r\nFull output:\r\n\r\n```\r\nλ pip install scandir\r\nDownloading/unpacking scandir\r\n  Downloading scandir-1.7.tar.gz\r\n  Running setup.py (path:C:\\Users\\fabio\\AppData\\Local\\Temp\\pip_build_fabio\\scandir\\setup.py) egg_info for package scandir\r\n\r\nInstalling collected packages: scandir\r\n  Running setup.py install for scandir\r\n    building '_scandir' extension\r\n    error: Compiling extensions is not supported on Jython\r\n    Complete output from command C:\\bin\\jython2.7.0\\bin\\jython.exe -c \"import setuptools, tokenize;__file__='C:\\\\Users\\\\fabio\\\\AppData\\\\Local\\\\Temp\\\\pip_build_fabio\\\\scandir\\\\setup.py';exec(compile\r\n(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record C:\\Users\\fabio\\AppData\\Local\\Temp\\pip-inf_f4-record\\install-record.txt --single-version\r\n-externally-managed --compile:\r\n    running install\r\n\r\nrunning build\r\n\r\nrunning build_py\r\n\r\ncreating build\r\n\r\ncreating build\\lib.java1.8.0_172-2.7\r\n\r\ncopying scandir.py -> build\\lib.java1.8.0_172-2.7\r\n\r\nrunning build_ext\r\n\r\nbuilding '_scandir' extension\r\n\r\nerror: Compiling extensions is not supported on Jython\r\n\r\n----------------------------------------\r\nCleaning up...\r\nCommand \"C:\\bin\\jython2.7.0\\bin\\jython.exe -c \"import setuptools, tokenize;__file__='C:\\\\Users\\\\fabio\\\\AppData\\\\Local\\\\Temp\\\\pip_build_fabio\\\\scandir\\\\setup.py';exec(compile(getattr(tokenize, 'open\r\n', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record C:\\Users\\fabio\\AppData\\Local\\Temp\\pip-inf_f4-record\\install-record.txt --single-version-externally-managed --co\r\nmpile\" failed with error code 1 in C:\\Users\\fabio\\AppData\\Local\\Temp\\pip_build_fabio\\scandir\r\nStoring debug log for failure in C:\\Users\\fabio\\.pip\\pip.log\r\n```"},"comment":{"url":"https://api.github.com/repos/benhoyt/scandir/issues/comments/409542953","html_url":"https://github.com/benhoyt/scandir/issues/105#issuecomment-409542953","issue_url":"https://api.github.com/repos/benhoyt/scandir/issues/105","id":409542953,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU0Mjk1Mw==","user":{"login":"fabioz","id":117621,"node_id":"MDQ6VXNlcjExNzYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/117621?v=4","gravatar_id":"","url":"https://api.github.com/users/fabioz","html_url":"https://github.com/fabioz","followers_url":"https://api.github.com/users/fabioz/followers","following_url":"https://api.github.com/users/fabioz/following{/other_user}","gists_url":"https://api.github.com/users/fabioz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabioz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabioz/subscriptions","organizations_url":"https://api.github.com/users/fabioz/orgs","repos_url":"https://api.github.com/users/fabioz/repos","events_url":"https://api.github.com/users/fabioz/events{/privacy}","received_events_url":"https://api.github.com/users/fabioz/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T11:25:59Z","updated_at":"2018-08-01T11:25:59Z","author_association":"NONE","body":"The steps I'm running to get the failure on travis (https://github.com/fabioz/PyDev.Debugger/blob/master/.travis.yml) are:\r\n\r\n```\r\nexport JYTHON_URL=http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar\r\n\r\nwget $JYTHON_URL -O jython_installer.jar\r\njava -jar jython_installer.jar -s -d $HOME/jython\r\nexport PATH=$HOME/jython:$HOME/jython/bin:$PATH\r\npip install scandir\r\n```\r\n\r\nIt seems that the pip being used in that case is some older (or maybe custom) version (1.6.dev1), so, I tried upgrading pip too with `pip install --upgrade pip` (which got it to pip 18.0), but trying to do a `pip install scandir` still gives the same error.\r\n\r\nSo, maybe there is some fix on Jython 2.7.1 itself -- although I can't really find it... the Jython download page: http://www.jython.org/downloads.html only points to 2.7.0.\r\n\r\n"}}
{"actor":{"display_login":"fabioz"}}